WP_Screen::add_option() – Adds an option for the screen.
You appear to be a bot. Output may be restricted
Description
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.
Usage
WP_Screen::add_option( $option, $args );
Parameters
- $option
- ( string ) required – Option ID.
- $args
- ( mixed ) optional – Option-dependent arguments.
Returns
void
Source
File name: wordpress/wp-admin/includes/class-wp-screen.php
Lines:
1 to 3 of 3
public function add_option( $option, $args = array() ) { $this->_options[ $option ] = $args; }