wordpress / latest / classes / wp_screen / remove_option.html

WP_Screen::remove_option( string $option )

Removes an option from the screen.

Parameters

$option string Required
Option ID.

Source

File: wp-admin/includes/class-wp-screen.php. View all references

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

Changelog

Version Description
3.8.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_screen/remove_option