WP_Screen::remove_options() WordPress Method

The WP_Screen::remove_options() method is used to remove screen options from a WordPress admin page. This is useful if you want to hide certain options from your users, or if you want to limit the options available to them.

WP_Screen::remove_options() #

Remove all options from the screen.


Source

File: wp-admin/includes/class-wp-screen.php

	public function remove_options() {
		$this->_options = array();
	}

Top ↑

Changelog

Changelog
VersionDescription
3.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.