How to translate add_contextual_help to get_current_screen()->add_help_tab()

Sorry only have time to offer a quick fix…. See where you can go from here.. /** * The Admin menu page */ function wptuts_add_menu(){ // Display Settings Page link under the “Appearance” Admin Menu // add_theme_page( $page_title, $menu_title, $capability, $menu_slug, $function); $wptuts_settings_page = add_theme_page(__(‘Wptuts Options’), __(‘Wptuts Options’,’wptuts_textdomain’), ‘manage_options’, WPTUTS_PAGE_BASENAME, ‘wptuts_settings_page_fn’); // css & js … Read more

Custom Post Type – Admin Columns

I’m not sure why you’re getting the ‘0’s. But you shouldn’t be using 2 switch statements in work_custom_columns(). Try this: function work_custom_columns($column){ global $post; switch ($column){ case “work_category”: echo get_the_term_list($post->ID, ‘work_category’, ”, ‘, ‘,”); break; case “work_hashtags”: echo get_the_term_list($post->ID, ‘work_hashtag’, ”, ‘, ‘,”); break; } }

Modify Contextual Help

If you want to remove some or all (default) help tabs, then you could do something like this inside your function. $current_screen = get_current_screen(); $white_list = array( ‘overview-link’, // If you want to keep default some tab title and content ); if ( $current_tabs = $current_screen->get_help_tabs() ) { foreach ($current_tabs as $tab_key => $tab_config) { … Read more

Customizing contextual help for every page

You can add this code in your functions.php file. function example_contextual_help( $contextual_help, $screen_id, $screen ) { //echo ‘Screen ID = ‘.$screen_id.'<br />’; switch( $screen_id ) { case ‘my_plugin_page_1’ : $contextual_help .= ‘<p>’; $contextual_help = __( ‘Your text here.’ ); $contextual_help .= ‘</p>’; break; case ‘my_plugin_page_2’ : $contextual_help .= ‘<p>’; $contextual_help = __( ‘Your text here.’ … Read more