Used By
Used By | Description |
---|---|
wp-admin/includes/class-wp-screen.php: WP_Screen::render_screen_meta() | Render the screen’s help section. |
wp-admin/includes/meta-boxes.php: page_attributes_meta_box() | Display page attributes form fields. |
Gets the help tabs registered for the screen.
(array) Help tabs with arguments.
File: wp-admin/includes/class-wp-screen.php
public function get_help_tabs() { $help_tabs = $this->_help_tabs; $priorities = array(); foreach ( $help_tabs as $help_tab ) { if ( isset( $priorities[ $help_tab['priority'] ] ) ) { $priorities[ $help_tab['priority'] ][] = $help_tab; } else { $priorities[ $help_tab['priority'] ] = array( $help_tab ); } } ksort( $priorities ); $sorted = array(); foreach ( $priorities as $list ) { foreach ( $list as $tab ) { $sorted[ $tab['id'] ] = $tab; } } return $sorted; }
Version | Description |
---|---|
4.4.0 | Help tabs are ordered by their priority. |
3.4.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_screen/get_help_tabs