wp_cache_plugin_notice()
add_filter( 'favorite_actions', 'wp_cache_favorite_action' );
Хуков нет.
Возвращает
null
. Ничего.
Использование
wp_cache_plugin_notice( $plugin );
- $plugin (обязательный)
- -
Код wp_cache_plugin_notice() wp cache plugin notice WPSCache 1.9.4
function wp_cache_plugin_notice( $plugin ) { global $cache_enabled; if( $plugin == 'wp-super-cache/wp-cache.php' && !$cache_enabled && function_exists( 'admin_url' ) ) echo '<td colspan="5" class="plugin-update">' . sprintf( __( 'WP Super Cache must be configured. Go to <a href="%s">the admin page</a> to enable and configure the plugin.', 'wp-super-cache' ), admin_url( 'options-general.php?page=wpsupercache' ) ) . '</td>'; }