remove_meta_box issue!
-
Hi guys – I run into a problem trying to get remove_meta_box() to work
/** remove metabox for catchkathmandu options */ function vpm_remove_meta_box() { remove_meta_box( 'catchkathmandu-options', 'post', 'normal' ); remove_meta_box( 'authordiv' , 'page' , 'normal' ); //removes author } add_action( 'add_meta_boxes', 'vpm_remove_meta_box' );
The point is I dont want contributors and authors to edit the site design, so I wanted to remove the catchkathmandu-options. the code obviously does not reflect the condition, the codex for this function supplies the solutions for that but this code at the besic step, still isnt working – I switched back to Twenty Sixteen theme and put in the authordiv section simply to test. But still no dice.
Have I taken the wrong path and am I looking at the wrong thing entirely?
Any help appreciated!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘remove_meta_box issue!’ is closed to new replies.