Used By
Used By | Description |
---|---|
wp-admin/includes/class-wp-screen.php: WP_Screen::render_screen_layout() | Render the option for number of columns on the page |
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.
(int) Number of columns to display.
File: wp-admin/includes/class-wp-screen.php
public function get_columns() { return $this->columns; }
Version | Description |
---|---|
3.4.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_screen/get_columns