action_scheduler_claim_actions_order_by

action_scheduler_claim_actions_order_by

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('action_scheduler_claim_actions_order_by') is found 1 times:

  • /packages/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php line 932
    		 * @since 3.4.0
    		 *
    		 * @param string $order_by_sql
    		 */
    		$order    = apply_filters( 'action_scheduler_claim_actions_order_by', 'ORDER BY priority ASC, attempts ASC, scheduled_date_gmt ASC, action_id ASC' );
    		$params[] = $limit;
    
    		$sql           = $wpdb->prepare( "{$update} {$where} {$order} LIMIT %d", $params ); // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared, WordPress.DB.PreparedSQLPlaceholders
    		$rows_affected = $wpdb->query( $sql ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared, WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching
    		if ( false === $rows_affected ) {
    			$error = empty( $wpdb->last_error )