WordPress at Your Fingertips
function is not described

WP_Screen::get_columns() public WP 3.4.0

Gets the number of layout columns the user has selected.

The layout_columns option controls the max number and default number of columns. This method returns the number of columns within that range selected by the user via Screen Options. If no selection has been made, the default provisioned in layout_columns is returned. If the screen does not support selecting the number of layout columns, 0 is returned.

{} It's a method of the class: WP_Screen{}

No Hooks.

Return

Int. Number of columns to display.

Usage

$WP_Screen = new WP_Screen();
$WP_Screen->get_columns();

Changelog

Since 3.4.0 Introduced.

Code of WP_Screen::get_columns() WP 5.8.2

public function get_columns() {
	return $this->columns;
}