WordPress.org

Support

Support » Plugins and Hacks » Remove Items from "Screen Options"

Remove Items from "Screen Options"

  • As some want to hide the options, I only want to hide certain elements like the tumblr options that display in the “Screen Options” in the dashboard.

    Is there hook or hack that anyone knows that would allow me to keep the “Screen Options” visible but remove certain items from it? Something I could throw into my functions.php in my theme directory?

    Any help is appreciated and thanks!

Viewing 1 replies (of 1 total)
  • tbradley22

    @tbradley22

    copy this into your functions.php file

    /********************************************
    ***** Remove disable delete custom fields in page editor
    ********************************************/

    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>’;
    }

Viewing 1 replies (of 1 total)
  • The topic ‘Remove Items from "Screen Options"’ is closed to new replies.
Skip to toolbar