WordPress.org

Support

Support » Plugins and Hacks » Visual Subtitle » Filter to remove Visual Subtitle Meta Box?

Filter to remove Visual Subtitle Meta Box?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Gary Jones

    @garyj

    If you don’t want it viewable on the Edit Post screen (odd, as you then couldn’t actually use it), then you can turn it off in the Screen Options, top right tab.

    Hi Gary.
    There are certain post types that the subtitle doesn’t apply well to.
    I realized that I can turn it off via screen options, but that won’t help a user that doesn’t know that…

    Hello Bruce,

    You can just remove the metabox based on which post types you want to remove.

    add_action( 'admin_init', 'wps_remove_visual', 15 );
    function wps_remove_visual() {
    	if ( class_exists( 'Visual_Subtitle' )
    		remove_meta_box( 'visual-subtitle', 'minfolio_portfolio', 'normal' );
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Filter to remove Visual Subtitle Meta Box?’ is closed to new replies.
Skip to toolbar