action_scheduler_claim_actions_order_by, ORDER BY priority ASC, attempts ASC, scheduled_date_gmt ASC, action_id ASC, $claim_id, $hooks
action_scheduler_claim_actions_order_by, ORDER BY priority ASC, attempts ASC, scheduled_date_gmt ASC, action_id ASC, $claim_id, $hooks
Appears in: all-in-one-seo-pack.5.0.0.1
Hook Type: filter
Displaying hooks found in version: all-in-one-seo-pack.5.0.0.1apply_filters('action_scheduler_claim_actions_order_by, ORDER BY priority ASC, attempts ASC, scheduled_date_gmt ASC, action_id ASC, $claim_id, $hooks') is found 1 times:
- /vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php line 1000
* * @since 3.8.3 Made $claim_id and $hooks available. * @since 3.4.0 */ $order = apply_filters( 'action_scheduler_claim_actions_order_by', 'ORDER BY priority ASC, attempts ASC, scheduled_date_gmt ASC, action_id ASC', $claim_id, $hooks ); $skip_locked = $this->db_supports_skip_locked() ? ' SKIP LOCKED' : ''; // Selecting the action_ids that we plan to claim, while skipping any locked rows to avoid deadlocking. $select_sql = $wpdb->prepare( "SELECT action_id from {$wpdb->actionscheduler_actions} {$where} {$order} LIMIT %d FOR UPDATE{$skip_locked}", array_merge( $where_params, array( $limit ) ) ); // Now place it into an UPDATE statement by joining the result sets, allowing for the SKIP LOCKED behavior to take effect.