Support

Account

Home Forums Front-end Issues Disable Toggle Reply To: Disable Toggle

  • Hi @spinner903,

    Thanks for the post.

    To remove any item from the screen options menu, you would need to hook into the wp admin_head action and add a {display : none} attribute to the div. An example of this code would look like this:

    /********************************************
    ***** Disable option
    ********************************************/
    
    add_action( 'admin_head', 'remove_wordpress_cfields' );
    function remove_wordpress_cfields() {
    echo '<style>#postcustom { display: none; }</style>';
    echo '<style>label[for=postcustom-hide] { display: none; }</style>';
    }