WP_Screen::remove_option() WordPress Method

The WP_Screen::remove_option() method is used to remove a screen option from a WordPress admin screen. This is useful for removing unused or deprecated options from the screen.

WP_Screen::remove_option( string $option ) #

Remove an option from the screen.


Parameters

$option

(string)(Required)Option ID.


Top ↑

Source

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

	public function remove_option( $option ) {
		unset( $this->_options[ $option ] );
	}

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.