PluginProbe
Image SEO – AI-Driven Image SEO Optimizer / trunk
Image SEO – AI-Driven Image SEO Optimizer vtrunk
3.2.16 3.2.15 3.2.13 3.2.14 3.2.12 3.2.11 3.2.10 3.2.9 3.2.8 3.2.7 3.2.6 trunk 2.0.9 3.0.0 3.0.1 3.0.2 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.2.0 3.2.1 3.2.2 3.2.3 All 71 releases
imageseo / src / Async / QueryTotalImagesBackgroundProcess.php

QueryTotalImagesBackgroundProcess.php in Image SEO – AI-Driven Image SEO Optimizer trunk, at src/Async/QueryTotalImagesBackgroundProcess.php

28 lines 561 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace ImageSeoWP\Async;
4
5 defined('ABSPATH') or die('Cheatin&#8217; uh?');
6
7 class QueryTotalImagesBackgroundProcess extends WPBackgroundProcess
8 {
9 protected $action = 'imageseo_query_total_images_background_process';
10
11 /**
12 * Task.
13 *
14 * @param mixed $item Queue item to iterate over
15 *
16 * @return mixed
17 */
18 protected function task($item)
19 {
20 imageseo_get_service('QueryImages')->getTotalImages([
21 'forceQuery'=> true,
22 'withCache' => false,
23 ]);
24
25 return false;
26 }
27 }
28