Changeset 19119 for trunk/wp-admin/includes/screen.php
- Timestamp:
- 11/02/2011 08:14:10 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/screen.php
r19113 r19119 154 154 return; 155 155 156 return$current_screen->add_option( $option, $args );156 $current_screen->add_option( $option, $args ); 157 157 } 158 158 … … 598 598 /** 599 599 * Add a help tab to the contextual help for the screen. 600 * Call this in template files after admin.php is loaded and before admin-header.php is loaded to add contextual help tabs.600 * Call this on the load-$pagenow hook for the relevant screen. 601 601 * 602 602 * @since 3.3.0 … … 628 628 629 629 /** 630 * Removes a help tab from the contextual help for the screen. 631 * 632 * @since 3.3.0 633 * 634 * @param string $id The help tab ID. 635 */ 636 public function remove_help_tab( $id ) { 637 unset( $this->_help_tabs[ $id ] ); 638 } 639 640 /** 641 * Removes all help tabs from the contextual help for the screen. 642 * 643 * @since 3.3.0 644 */ 645 public function remove_help_tabs() { 646 $this->_help_tabs = array(); 647 } 648 649 /** 630 650 * Add a sidebar to the contextual help for the screen. 631 651 * Call this in template files after admin.php is loaded and before admin-header.php is loaded to add a sidebar to the contextual help. … … 635 655 * @param string $content Sidebar content in plain text or HTML. 636 656 */ 637 public function add_help_sidebar( $content ) {657 public function set_help_sidebar( $content ) { 638 658 $this->_help_sidebar = $content; 639 659 }
Note: See TracChangeset
for help on using the changeset viewer.