wp_cache_favorite_action() WPSCache 1.0
More info - https://github.com/Automattic/wp-super-cache/pull/373 add_action( 'template_redirect', 'wp_cache_catch_404' );
No Hooks.
Return
Null. Nothing.
Usage
wp_cache_favorite_action( $actions );
Code of wp_cache_favorite_action() wp cache favorite action WPSCache 1.7.1
function wp_cache_favorite_action( $actions ) {
if ( function_exists( '_deprecated_function' ) ) {
_deprecated_function( __FUNCTION__, 'WP Super Cache 1.6.4' );
}
if ( false == wpsupercache_site_admin() )
return $actions;
if ( function_exists('current_user_can') && !current_user_can('manage_options') )
return $actions;
$actions[ wp_nonce_url( 'options-general.php?page=wpsupercache&wp_delete_cache=1&tab=contents', 'wp-cache' ) ] = array( __( 'Delete Cache', 'wp-super-cache' ), 'manage_options' );
return $actions;
}