| | |
| | | * @param int $userId User ID |
| | | * @param array $data Request data |
| | | * @param array $options { |
| | | * @type string $priority 'low', 'normal', 'high' |
| | | * @type int $delay Seconds to delay processing |
| | | * @type string $scheduled Specific datetime to process |
| | | * @type array|string $depends_on Operation IDs this depends on |
| | | * @type string|array $chunk_key Key(s) to chunk (overrides registry) |
| | | * @type int $chunk_size Chunk size (overrides registry) |
| | | * @type string $priority 'low', 'normal', 'high' |
| | | * @type int $delay Seconds to delay processing |
| | | * @type string $scheduled Specific datetime to process |
| | | * @type array|string $depends_on Operation IDs this depends on |
| | | * @type string|array $chunk_key Key(s) to chunk (overrides registry) |
| | | * @type int $chunk_size Chunk size (overrides registry) |
| | | * } |
| | | * @throws Throwable |
| | | * @throws Throwable |
| | | */ |
| | | public function add(string $type, int $userId, array $data, array $options = []): array|WP_Error |
| | | { |
| | |
| | | 'infinity' |
| | | ); |
| | | } |
| | | |
| | | /** |
| | | * @param WP_REST_Response $response |
| | | * @param WP_REST_Request $request |
| | | * @param string $action |
| | | * |
| | | * @return bool|WP_REST_Response |
| | | * @return WP_REST_Response|bool |
| | | */ |
| | | public function adminActionFilter(WP_REST_Response $response, WP_REST_Request $request, string $action):WP_REST_Response|bool |
| | | { |