wp-background-processing
wp-background-processing copied to clipboard
WordPress background processing class
Hello! Not sure if I'm missing something. I'm adding an item for an async request : ``` $example->example_request = new WP_Example_Request(); $example->example_request->data( array( 'value1' => 'the value 1', 'value2' =>...
I tried to trigger the WP background processing using rest api. I used the register_rest_route callback to instantiate the WP background processing class and upon api request, I tried to...
Instead of checking `$this->is_process_running()` in `maybe_handle()`, it makes more sense for performance to check before dispatching the async request at all. In our case, using WP Background Processing to handle...
### My Use case of this library I'm using this library to schedule an execution that will make an api call when if order will be place from Store. ###...
I love this library since Action Scheduler wasn't working for me (AS took way too long to start processing, whereas WP BG Processing only has a short delay usually). 95%...
in /classes/class-background-process.php ``` require_once get_template_directory() . '/vendor/autoload.php'; class BackgroundProcess extends WP_Background_Process { protected $action = 'test'; protected function task($item) { error_log($item); sleep(5); return false; } protected function complete() { parent::complete();...
I had the library working for a while then I decided to move files in a different folder structure. did composer remove, composer require and moved my files accordingly After...
WP_Background_Process only works if the function executing it is located in the functions.php file it's is very frustrating. I have Cron Jobs that I execute on my own, when I...
Hi Ashley, Im trying yo use your lib to sync data from WP to external system but I could not make it work...im only trying to write to logs... require_once...
Hey, First of all I would like to thank the creators of this library. It is simply awesome! However, it might be really tricky to get this up and running....