0 commentswordpress

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 ….  Read More