contextual_help_list
Устарел с версии 3.3.0. Больше не поддерживается и может быть удален. Смотрите
{@see get_current_screen()->add_help_tab()} or
{@see get_current_screen()->remove_help_tab()}.Filters the legacy contextual help list.
Использование
add_filter( 'contextual_help_list', 'wp_kama_contextual_help_list_filter', 10, 4 );
/**
* Function for `contextual_help_list` filter-hook.
*
* @param array $old_compat_help Old contextual help.
* @param WP_Screen $screen Current WP_Screen instance.
* @param $string
* @param $get_current_screen()->remove_help_tab()
*
* @return array
*/
function wp_kama_contextual_help_list_filter( $old_compat_help, $screen, $string, $get_current_screen()->remove_help_tab() ){
// filter...
return $old_compat_help;
}
- $old_compat_help(массив)
- Old contextual help.
- $screen(WP_Screen)
- Current WP_Screen instance.
- $string
- -
- $get_current_screen()->remove_help_tab()
- -
Список изменений
| С версии 2.7.0 | Введена. |
| Устарела с 3.3.0 | Use {@see get_current_screen()->add_help_tab()} or |
Где вызывается хук
wp-admin/includes/class-wp-screen.php 802-807
self::$_old_compat_help = apply_filters_deprecated( 'contextual_help_list', array( self::$_old_compat_help, $this ), '3.3.0', 'get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab()' );