What is the $context in remove_meta_box function?

I use the remove_meta_box function to remove the area I don`t want to display in the dashboard.

But I can`t figure out what is the $context ?

remove_meta_box( $id, $page, $context )

$context has three string to choose side , normal , advanced

what is difference among these three??

1 Answer
1

The context within the screen IS where the boxes should display. Available contexts vary from screen to screen. Post edit screen contexts include ‘normal’, ‘side’, and ‘advanced’. Comments screen contexts include ‘normal’ and ‘side’. Menus meta boxes (accordion sections) all use the ‘side’ context. Global default is ‘advanced’.

So it is the place you are removing the box from.

https://codex.wordpress.org/Function_Reference/remove_meta_box

Leave a Comment