wp_cache_favorite_action()
More info - https://github.com/Automattic/wp-super-cache/pull/373 add_action( template_redirect, 'wp_cache_catch_404' );
Хуков нет.
Возвращает
null
. Ничего.
Использование
wp_cache_favorite_action( $actions );
- $actions (обязательный)
- -
Код wp_cache_favorite_action() wp cache favorite action WPSCache 1.9.4
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; }