Actions can have any functionality, and Filters can exist to modify data. Actions may or may not passed any data by their action hook, and Filters are passed data to modify by their hook. Actions do not return their changes, and Filters must return their changes.
3rd parameter in add_action
Many times we ignore third parameter in add_action. add_action( string $tag, callable $function_to_add, int $priority = 10, int $accepted_args = 1 ) If you read documentation on wordpress doc then you will found higher priority leter execution Let us take some example add_action(‘wp_head’,’check_action1′,100); function check_action(){ echo ‘later sandeep call’; } add_action(‘wp_head’,’check_action2′,13); function check_action2(){ echo ‘first […]