• demas23

    (@demas23)


    It would be great to have the ability to limit the metabox to only show on certain post types. I have a Popups post type where having a custom link isn’t necessary, and I don’t want clients being confused and messing with these settings when its not necessary on a particular post type.

Viewing 1 replies (of 1 total)
  • There’s a simple filter to disable it for any post type you like:

    /*

                Plugins that use custom post types can use this filter to hide the

                PLT UI in their post type.

            */

            $hook = ‘page-links-to-post-types’;

            $supported_post_types = (array) apply_filters( $hook, array_keys( get_post_types( array(

                ‘show_ui’ => true,

            ) ) ) );

Viewing 1 replies (of 1 total)
  • The topic ‘Option to Disable On Certain Post Types’ is closed to new replies.