In this tutorial, we are going to upload files on WordPress programmatically. Maybe you have already seen PHP File Upload and it simply didn’t work. Even if it does work, it is not recommended usin...
How to create an admin page for your WordPress plugin
In this tutorial, we are going to create an admin page for your WordPress plugin. If you are using some famous plugins such as Yoast SEO, you can see that they have their own admin menu page that ...
How to create custom WordPress shortcode plugin from scratch
In this tutorial, we would be creating a custom WordPress shortcode plugin. I assumed that you are already familiar with WordPress plugins. We know that the WordPress plugins are composed of PHP f...
How to insert data into WordPress database
To insert data into WordPress database, we have learned that you need to connect the database. If you don’t know how you can refer to the previous topic entitled How to connect to WordPress databas...
How to create SEO friendly URL in PHP
In this tutorial, we would be creating a PHP function that will convert a string to create an SEO friendly URL that can be used on your website. We will also use some predefined PHP functions such...
How to connect to WordPress database
Connect to WordPress database using PHP and MySQL. In PHP, you can connect and modify databases in which MySQL is the most popular database system for this. Database tables hold the data found in ...
How to generate a random string in PHP
In this tutorial, we would be dealing with str_repeat, str_shuffle, and substr to generate a random string in PHP. Random strings can be used in generating things that use random strings such as t...