Used By
Used By | Description |
---|---|
wp-admin/includes/class-wp-screen.php: WP_Screen::render_screen_meta() | Render the screen’s help section. |
Adds an option for the screen.
Call this in template files after admin.php is loaded and before admin-header.php is loaded to add screen options.
(string) (Required) Option ID.
(mixed) (Optional) Option-dependent arguments.
Default value: array()
File: wp-admin/includes/class-wp-screen.php
public function add_option( $option, $args = array() ) { $this->_options[ $option ] = $args; }
Version | Description |
---|---|
3.3.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_screen/add_option