2

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

2

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.