WordPress.org

Ready to get started?Download WordPress

Codex

Function Reference/add screen option

This page is marked as incomplete. You can help Codex by expanding it.

Contents

Description

Adds a screen option to the current page.

Usage

<?php
  add_screen_option

      
'per_page',
      array(
'label' => _x'Comments''comments per page (screen options)' )) );
?>

Parameters

$option
(string) (required) An option name.
Default: None
$args
(array) (optional) Option-dependent arguments.
Default: array()

Examples

Change Log

Since: 3.1

Source File

add_screen_option() is located in wp-admin/includes/screen.php.

Related