screen_layout_columns WordPress Filter Hook

The screen_layout_columns hook is used to set the number of columns on a screen. The hook takes two arguments: the number of columns and the screen ID.

apply_filters( 'screen_layout_columns', array $empty_columns, string $screen_id, WP_Screen $screen ) #

Filters the array of screen layout columns.


Description

This hook provides back-compat for plugins using the back-compat Filters instead of add_screen_option().


Top ↑

Parameters

$empty_columns

(array)Empty array.

$screen_id

(string)Screen ID.

$screen

(WP_Screen)Current WP_Screen instance.


Top ↑

Source

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

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.