• Resolved ekajuan

    (@ekajuan)


    I’ve tried:

    function remove_post_custom_fields() {
    	remove_meta_box( 'job_listing_data' , 'job_listing' , 'normal' );
    }
    add_action( 'admin_menu' , 'remove_post_custom_fields' );

    no luck.

    Why I do want to remove it?
    Because I use WP User Frontend plugin to create my own custom form. The plugin create it’s own meta box. And now there are two meta boxes (From you and from the plugin) with several same fields. And there’s a problem with that.

    https://www.ads-software.com/plugins/wp-job-manager/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Brandon Kraft

    (@kraftbj)

    Code Wrangler

    I didn’t look too closely why admin_menu isn’t working. My guess is add_meta_boxes fires later than that and the Codex is wrong.

    In either case, try this:

    function remove_post_custom_fields() {
    	remove_meta_box( 'job_listing_data' , 'job_listing' , 'normal' );
    }
    add_action( 'add_meta_boxes' , 'remove_post_custom_fields', 99 );

    Thread Starter ekajuan

    (@ekajuan)

    Yep, add_meta_boxes works…
    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to remove the listings data meta box ?’ is closed to new replies.