wpcf7_admin_menu_change_notice()
Хуки из функции
Возвращает
null
. Ничего (null).
Использование
wpcf7_admin_menu_change_notice( $menu_slug );
- $menu_slug **
- -
По умолчанию: ''
Код wpcf7_admin_menu_change_notice() wpcf7 admin menu change notice CF7 5.9.8
function wpcf7_admin_menu_change_notice( $menu_slug = '' ) { $counts = apply_filters( 'wpcf7_admin_menu_change_notice', array( 'wpcf7' => 0, 'wpcf7-new' => 0, 'wpcf7-integration' => 0, ) ); if ( empty( $menu_slug ) ) { $count = absint( array_sum( $counts ) ); } elseif ( isset( $counts[$menu_slug] ) ) { $count = absint( $counts[$menu_slug] ); } else { $count = 0; } if ( $count ) { return sprintf( ' <span class="update-plugins %1$d"><span class="plugin-count">%2$s</span></span>', $count, esc_html( number_format_i18n( $count ) ) ); } return ''; }