action_scheduler_claim_actions_order_by хук-фильтрWC .

Sets the order-by clause used in the action claim query.

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

add_filter( 'action_scheduler_claim_actions_order_by', 'wp_kama_action_scheduler_claim_actions_order_by_filter', 10, 3 );

/**
 * Function for `action_scheduler_claim_actions_order_by` filter-hook.
 * 
 * @param string $order_by_sql           
 * @param        $scheduled_date_gmt ASC 
 * @param        $action_id ASC          
 *
 * @return string
 */
function wp_kama_action_scheduler_claim_actions_order_by_filter( $order_by_sql, $scheduled_date_gmt ASC, $action_id ASC ){

	// filter...
	return $order_by_sql;
}
$order_by_sql(строка)
-
$scheduled_date_gmt ASC
-
$action_id ASC
-

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

С версии . Введена.
Since x.x.x

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

ActionScheduler_DBStore::claim_actions()
action_scheduler_claim_actions_order_by
woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php 677
$order    = apply_filters( 'action_scheduler_claim_actions_order_by', 'ORDER BY attempts ASC, scheduled_date_gmt ASC, action_id ASC' );

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

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