Hello everyone,
please let me know about wordpress hooks
Any kind of help highly appreciated.
Action hooks | Filter hooks |
Custom functions can be run via actions at a certain time in the WordPress Core execution. | Filters allow for the modification or customization of data used by other processes. |
Actions are defined or created via the WordPress code function do_action("action_name"). | The Wordpress function apply_filters('filter_name,' 'value_to_be_filtered') defines or constructs filters. |
An action can do almost anything as long as the code is sound. | To avoid any unwanted side effects, filters should operate independently. |
add_function() and remove_action() are examples of action hooks. | add_filter() and remove_filter() are examples of filter hooks. |
See our Cookie Policy
We use cookies to make your online experience easier and better. You consent to this by clicking on "I Agree" or by continuing your use of this website. For more information, See our Privacy Policy.
Comment