-
Notifications
You must be signed in to change notification settings - Fork 73
Tweaking argument counts
John P. Bloch edited this page Jul 15, 2014
·
1 revision
By default, the action handler for triggering the asynchronous request will pass on up to 20 arguments. It's highly unlikely that you will ever need to change this value. However, if you wish to do so, override the protect $argument_count
property:
<?php
class JPB_Task extends WP_Async_Task {
protected $argument_count = 40; // WHO HAS THIS MANY ARGUMENTS???
/*...*/
}