action_scheduler_async_request_sleep_seconds

action_scheduler_async_request_sleep_seconds

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('action_scheduler_async_request_sleep_seconds') is found 1 times:

  • /packages/action-scheduler/classes/ActionScheduler_AsyncRequest_QueueRunner.php line 94

    Warning: Undefined array key 96 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 97 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 98 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 99 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    	/**
    	 * Chaining async requests can crash MySQL. A brief sleep call in PHP prevents that.
    	 */
    	protected function get_sleep_seconds() {
    		return apply_filters( 'action_scheduler_async_request_sleep_seconds', 5, $this );
    	}
    }