Remove certain meta boxes from event editing pages?
-
I would like to be able to remove certain meta boxes from the event editing page in order to simplify the user interface for my users. However, using remove_meta_box() doesn’t seem to be working. The code I’m currently trying to use is:
remove_meta_box('postexcerpt', 'event', 'normal'); remove_meta_box('postcustom', 'event', 'normal'); remove_meta_box('commentstatusdiv', 'event', 'normal'); remove_meta_box('commentsdiv', 'event', 'normal'); remove_meta_box('authordiv', 'event', 'normal'); remove_meta_box('event-categorydiv', 'event', 'side'); remove_meta_box('tagsdiv-event-tag', 'event', 'side'); remove_meta_box('postimagediv', 'event', 'side');
I’m hooking that code into the admin area with
add_action( 'admin_menu', 'remove_meta_boxes');
but it doesn’t seem to be working. Is this an error on my end, such as an incorrect location to hook the function to, or does event organiser not support this? I would really like to be able to simplify the event editing page’s user interface for my users as they aren’t technically proficient at all and are easily overwhelmed with all of the additional options that they have to modify that aren’t relevant to their use cases. Thanks for your assistance!
- The topic ‘Remove certain meta boxes from event editing pages?’ is closed to new replies.