Adds an option for the screen.
Description
Call this in template files after admin.php is loaded and before admin-header.php is loaded to add screen options.
Parameters
$option
stringrequired- Option ID.
$args
mixedoptional- Option-dependent arguments.
Default:
array()
Source
public function add_option( $option, $args = array() ) {
$this->_options[ $option ] = $args;
}
Changelog
Version | Description |
---|---|
3.3.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.