Tutorials

No draft in menu?

No draft in menu?

Have you ever tried to set a WordPress page to draft status, after you added it the main menu? I did this recently and expected WordPress to be smart enough to also update the main menu to reflect that change. However, when I viewed the webpage as a guest, I could...

Determine current action name and priority

Determine current action name and priority

We all know how to attach a custom callback function to a WordPress action. It's as simple as add_action( 'init', 'my_function' ); But what happens, when you have multiple actions run the same function? Take this code, as an example: add_action(...