wpsc_plugins_tab() WPSCache 1.0
Хуков нет.
Возвращает
Null. Ничего.
Использование
wpsc_plugins_tab();
Код wpsc_plugins_tab() wpsc plugins tab WPSCache 1.7.1
function wpsc_plugins_tab() {
echo '<p>' . esc_html__( 'Cache plugins are PHP scripts you\'ll find in a dedicated folder inside the WP Super Cache folder (wp-super-cache/plugins/). They load at the same time as WP Super Cache, and before regular WordPress plugins.', 'wp-super-cache' ) . '</p>';
echo '<p>' . esc_html__( 'Keep in mind that cache plugins are for advanced users only. To create and manage them, you\'ll need extensive knowledge of both PHP and WordPress actions.', 'wp-super-cache' ) . '</p>';
echo '<p>' . sprintf( __( '<strong>Warning</strong>! Due to the way WordPress upgrades plugins, the ones you upload to the WP Super Cache folder (wp-super-cache/plugins/) will be deleted when you upgrade WP Super Cache. To avoid this loss, load your cache plugins from a different location. When you set <strong>$wp_cache_plugins_dir</strong> to the new location in wp-config.php, WP Super Cache will look there instead. <br />You can find additional details in the <a href="%s">developer documentation</a>.', 'wp-super-cache' ), 'https://odd.blog/wp-super-cache-developers/' ) . '</p>';
ob_start();
if ( defined( 'WP_CACHE' ) ) {
if ( function_exists( 'do_cacheaction' ) ) {
do_cacheaction( 'cache_admin_page' );
}
}
$out = ob_get_contents();
ob_end_clean();
if ( SUBMITDISABLED == ' ' && $out != '' ) {
echo '<h4>' . esc_html__( 'Available Plugins', 'wp-super-cache' ) . '</h4>';
echo '<ol>';
echo $out;
echo '</ol>';
}
}