WP_Screen::add_option

SummerySummery

Adds an option for the screen.

Syntax

WP_Screen::add_option( string $option, mixed $args = array() )

DescriptionDescription

Call this in template files after admin.php is loaded and before admin-header.php is loaded to add screen options.

ParametersParameters

$option

(string) (Required) Option ID

$args

(mixed) (Optional) Option-dependent arguments.

Default value: array()

SourceSource

File: wp-admin/includes/class-wp-screen.php


			

ChangelogChangelog

Changelog
Version Description
3.3.0 Introduced.
Scroll to Top