PluginProbe
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF / 1.9.8
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF v1.9.8
2.3.4 2.3.3 2.3.2 2.3.1 2.3.0 2.2.9 2.2.8 trunk 1.10 1.3.3 1.3.4 1.3.5 1.3.5.1 1.3.5.2 1.3.6 1.3.6.1 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.5 All 103 releases
imagify / classes / Bulk / BulkInterface.php

BulkInterface.php in Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF 1.9.8, at classes/Bulk/BulkInterface.php

74 lines 1.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace Imagify\Bulk;
3
4 defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' );
5
6 /**
7 * Interface to use for bulk.
8 *
9 * @since 1.9
10 * @author Grégory Viguier
11 */
12 interface BulkInterface {
13
14 /**
15 * Get all unoptimized media ids.
16 *
17 * @since 1.9
18 * @access public
19 * @author Grégory Viguier
20 *
21 * @param int $optimization_level The optimization level.
22 * @return array A list of unoptimized media. Array keys are media IDs prefixed with an underscore character, array values are the main file’s URL.
23 */
24 public function get_unoptimized_media_ids( $optimization_level );
25
26 /**
27 * Get ids of all optimized media without webp versions.
28 *
29 * @since 1.9
30 * @since 1.9.5 The method doesn't return the IDs directly anymore.
31 * @access public
32 * @author Grégory Viguier
33 *
34 * @return array {
35 * @type array $ids A list of media IDs.
36 * @type array $errors {
37 * @type array $no_file_path A list of media IDs.
38 * @type array $no_backup A list of media IDs.
39 * }
40 * }
41 */
42 public function get_optimized_media_ids_without_webp();
43
44 /**
45 * Tell if there are optimized media without webp versions.
46 *
47 * @since 1.9
48 * @access public
49 * @author Grégory Viguier
50 *
51 * @return int The number of media.
52 */
53 public function has_optimized_media_without_webp();
54
55 /**
56 * Get the context data.
57 *
58 * @since 1.9
59 * @access public
60 * @author Grégory Viguier
61 *
62 * @return array {
63 * The formated data.
64 * The array keys corresponds to the table cell classes: "imagify-cell-{key}".
65 *
66 * @type string $count-optimized Number of media optimized.
67 * @type string $count-errors Number of media having an optimization error, with a link to the page listing the optimization errors.
68 * @type string $optimized-size Optimized filesize.
69 * @type string $original-size Original filesize.
70 * }
71 */
72 public function get_context_data();
73 }
74