screen_layout_columns filter-hookWP 2.8.0

Filters the array of screen layout columns.

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

Usage

add_filter( 'screen_layout_columns', 'wp_kama_screen_layout_columns_filter', 10, 3 );

/**
 * Function for `screen_layout_columns` filter-hook.
 * 
 * @param array     $empty_columns Empty array.
 * @param string    $screen_id     Screen ID.
 * @param WP_Screen $screen        Current WP_Screen instance.
 *
 * @return array
 */
function wp_kama_screen_layout_columns_filter( $empty_columns, $screen_id, $screen ){

	// filter...
	return $empty_columns;
}
$empty_columns(array)
Empty array.
$screen_id(string)
Screen ID.
$screen(WP_Screen)
Current WP_Screen instance.

Changelog

Since 2.8.0 Introduced.

Where the hook is called

WP_Screen::render_screen_meta()
screen_layout_columns
wp-admin/includes/class-wp-screen.php 941
$columns = apply_filters( 'screen_layout_columns', array(), $this->id, $this );

Where the hook is used in WordPress

Usage not found.