WordPress.org

Ready to get started?Download WordPress

Forums

Remove Items from "Screen Options" (2 posts)

  1. morestar
    Member
    Posted 3 years ago #

    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!

  2. tbradley22
    Member
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic