This topic has 1 reply, 2 voices, and was last updated 8 years by sharmstr.

  • Author
  • #62748
     Whoweez
    Participant

    Good day,

    I’m trying to clean up the post editor a bit for my client…

    I’m using the following code:

    function remove_post_custom_fields() {
    remove_meta_box( ‘page_menu’ , ‘post’ , ‘side’ );
    }
    add_action( ‘admin_menu’ , ‘remove_post_custom_fields’ );

    This does not work at all.

    Could you perhaps assist,

    Thank you,
    Whoweez

    #62897
     sharmstr
    Moderator

    Change ‘admin_menu’ to ‘do_meta_boxes’ in your action call. Also, you should really be wrapping the whole thing so it only runs on admin pages. if (is_admin())

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘KLEO’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?