Viewing 1 replies (of 1 total)
  • Plugin Author Tobias Schutter

    (@tschutter)

    In version 0.6.1 I have added the option to hide shortcodes for your users.

    If you would like to hide certain column from the menu; place the following in your functions.php

    function hide_column_shortcodes( $shortcodes ) {
    
    	/* uncomment ( remove the '//' ) any of the following to remove it's shortcode from menu */
    
    	// unset( $shortcodes['full_width'] );
    	// unset( $shortcodes['one_half'] );
    	// unset( $shortcodes['one_third'] );
    	// unset( $shortcodes['one_fourth'] );
    	// unset( $shortcodes['two_third'] );
    	// unset( $shortcodes['three_fourth'] );
    	// unset( $shortcodes['one_fifth'] );
    	// unset( $shortcodes['two_fifth'] );
    	// unset( $shortcodes['three_fifth'] );
    	// unset( $shortcodes['four_fifth'] );
    	// unset( $shortcodes['one_sixth'] );
    
    	return $shortcodes;
    }
    add_filter( 'cpsh_column_shortcodes', 'hide_column_shortcodes' );
Viewing 1 replies (of 1 total)

The topic ‘Disable Options’ is closed to new replies.