WP_Screen::get_option() – Gets the arguments for an option for the screen.
You appear to be a bot. Output may be restricted
Description
Gets the arguments for an option for the screen.
Usage
$string = WP_Screen::get_option( $option, $key );
Parameters
- $option
- ( string ) required – Option name.
- $key
- ( string|false ) optional – Optional. Specific array key for when the option is an array. Default false.
Returns
string The option value if set, null otherwise.
Source
File name: wordpress/wp-admin/includes/class-wp-screen.php
Lines:
1 to 12 of 12
public function get_option( $option, $key = false ) { if ( ! isset( $this->_options[ $option ] ) ) { return null; } if ( $key ) { if ( isset( $this->_options[ $option ][ $key ] ) ) { return $this->_options[ $option ][ $key ]; } return null; } return $this->_options[ $option ]; }