action_scheduler_check_pastdue_actions хук-фильтрWC 1.0

Action: admin_notices

Maybe check past-due actions, and print notice.

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

add_filter( 'action_scheduler_check_pastdue_actions', 'wp_kama_action_scheduler_check_pastdue_actions_filter' );

/**
 * Function for `action_scheduler_check_pastdue_actions` filter-hook.
 * 
 * @param  $current_user_can 
 *
 * @return 
 */
function wp_kama_action_scheduler_check_pastdue_actions_filter( $current_user_can ){

	// filter...
	return $current_user_can;
}
$current_user_can
-

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

ActionScheduler_AdminView::maybe_check_pastdue_actions()
action_scheduler_check_pastdue_actions
woocommerce/packages/action-scheduler/classes/ActionScheduler_AdminView.php 123
if ( ! apply_filters( 'action_scheduler_check_pastdue_actions', current_user_can( 'manage_options' ) ) ) {

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

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