Priority of callback action in wordpress – wpaccuracy

please click here for more wordpress cource

In this example i want to discuss about priority of callback action in custom WordPress development functionality
So in this tutorial i 3 to 4 example of action and we try to discuss one by one.
Before starting discussion i want to tell you about my self .
my English is little poor please don’t mind and you can correction my English in comment bar i feel well for correcting my English
so we are starting.

add_action('init', 'wpaccuracy_callback_run_me_early', 9);

The first function run will be wporg_call_backrun_me_early(), because it has a manual priority of 9

add_action('init', 'wpaccuracy_callback_run_me_normal');

Next, wpaccuracy_callback_run_me_normal(), because it has no priority set and so its priority is 10


add_action('init', 'wpaccuracy_callback_run_me_later', 11);

Next, wpaccuracy_callback_run_me_late() is run because it has a manual priority of 11

You may also like...

Popular Posts

Leave a Reply

Your email address will not be published. Required fields are marked *