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.
Contents
Parameters
- $option
(string)(Required)Option ID.
Source
File: wp-admin/includes/class-wp-screen.php
public function remove_option( $option ) { unset( $this->_options[ $option ] ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.8.0 | Introduced. |