Tag: hooks in wordpress
-

Action and Filter Hook in WordPress
Step 4 In the precious session we already learned about the Action Hook and Filter Hook of the word press. In this session we will cover the function used in these hooks with their working. There are 4 functions in Action and Filter Hook as follow: Action Hook do_action () This function is used to…
-

Hooks in WordPress
Step 2 Now we have to protect the content from hacking so that no-one can open this file directly. For this we use the following code if (! defined(‘ABSPATH’)): die (“You can’t access this file directly”); end if; Where is ABSPATH Function? Whenever we open the index file it goes to wp-blog-header then visit wp-load…