wpsc_admin_tabs()
Хуков нет.
Возвращает
null
. Ничего.
Использование
wpsc_admin_tabs( $current );
- $current **
- -
По умолчанию: ''
Код wpsc_admin_tabs() wpsc admin tabs WPSCache 1.9.4
function wpsc_admin_tabs( $current = '' ) { global $cache_enabled, $super_cache_enabled, $wp_cache_mod_rewrite; if ( '' === $current ) { $current = ! empty( $_GET['tab'] ) ? stripslashes( $_GET['tab'] ) : ''; // WPCS: CSRF ok, sanitization ok. } $admin_url = admin_url( 'options-general.php?page=wpsupercache' ); $admin_tabs = array( 'easy' => __( 'Easy', 'wp-super-cache' ), 'settings' => __( 'Advanced', 'wp-super-cache' ), 'cdn' => __( 'CDN', 'wp-super-cache' ), 'contents' => __( 'Contents', 'wp-super-cache' ), 'preload' => __( 'Preload', 'wp-super-cache' ), 'plugins' => __( 'Plugins', 'wp-super-cache' ), 'debug' => __( 'Debug', 'wp-super-cache' ), ); echo '<div id="nav"><h3 class="themes-php">'; foreach ( $admin_tabs as $tab => $name ) { printf( '<a class="%s" href="%s">%s</a>', esc_attr( $tab === $current ? 'nav-tab nav-tab-active' : 'nav-tab' ), esc_url_raw( add_query_arg( 'tab', $tab, $admin_url ) ), esc_html( $name ) ); } echo '</div></h3>'; }