The Art of Plugin Development: Common Mistakes to Avoid ( WordCamp Speech)
The slides are as follows
The slides are as follows
Let’s take index.php file first. Now time for the autoload.php file. This is very important file which actually loads the classes dynamically. Let’s setup a class. The file also imports another class. This project actually gives an idea of how the classes can be loaded dynamically. Full source code can be found in this Github…
Welcome to WordPress. From a new plugin you can print hello world like this. First of all, call an action within a Global Request method as follows: Now run the code. Go to your site url like http://wordpress.local/?test=a Enjoy the output!
When managing dates in WordPress, it’s crucial to use the right functions to avoid timezone issues. Here’s how some commonly used functions behave, particularly in GMT+6. Setting the Environment for Examples Examples of Date Functions 1. wp_date(): WordPress Date Formatting in Site Timezone (GMT+6) The wp_date() function returns the date in the timezone configured in…
Sharing your files locally from any folder on your Mac is simple. Just follow these steps: This quick method allows hassle-free sharing of files through your local network. My Suggestions:
add_action is used to add code to WordPress. This code can be executed when a specific event or hook occurs. For example, you could use add_action to add a custom message to the end of every post, or to redirect users to a different page after they log in. add_filter is used to modify the…
You need to send emails. Meaning you need SMTP Credentials. And you don’t have domain. What now ? Do not worry. go to brevo.com ( formerly sendinblue ) Obtain your credentials very easily. Click on the your organization/company name > smtp & api. or simply just go to https://app.brevo.com/settings/keys/smtp Then you may set your smtp…