Search Google/Youtube to understand the functions clearly.
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… Read More »Learn PHP Namespace and Class Loader easy way
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… Read More »add_action vs add_filter: What’s the Difference?
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!