wpsc_after_delete_cache_admin_bar хук-событиеWPSCache 1.9

Hook into the cache deletion process after a successful cache deletion from the admin bar button.

Использование

add_action( 'wpsc_after_delete_cache_admin_bar', 'wp_kama_wpsc_after_delete_cache_admin_bar_action', 10, 2 );

/**
 * Function for `wpsc_after_delete_cache_admin_bar` action-hook.
 * 
 * @param string $req_path Path of the page where the cache flush was requested.
 * @param string $referer  Referer URL.
 *
 * @return void
 */
function wp_kama_wpsc_after_delete_cache_admin_bar_action( $req_path, $referer ){

	// action...
}
$req_path(строка)
Path of the page where the cache flush was requested.
$referer(строка)
Referer URL.

Список изменений

С версии 1.9 Введена.

Где вызывается хук

wpsc_admin_bar_delete_cache()
wpsc_after_delete_cache_admin_bar
wp-super-cache/inc/delete-cache-button.php 128
do_action( 'wpsc_after_delete_cache_admin_bar', $req_path, $referer );

Где используется хук в WP Super Cache

Использование не найдено.