What is the Advanced $context in add_meta_box?

Posted by Prem Tiwari | Updated on

What is the Advanced $context in add_meta_box?

The difference between normal and advanced is that normal will be placed on the page before advanced.

For example the following will display “One” before “Two”

If you switch the context parameter around, then “Two” will display before “One” on the edit page:

Also if you reorder the meta boxes yourself by dragging them around then that order is saved and seems to take precedence over the ‘normal’ and ‘advanced’ contexts.

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers