Bulk_Page
Provides the resumable Bulk Optimize screen and AJAX endpoints.
Namespace: WebberZone\Image_Optimizer\Admin
Since: 1.0.0
Source: includes/admin/class-bulk-page.php line 28
Methods
__construct()
Constructor.
Since: 1.0.0
Line: 52
public function __construct( );
register_page()
Register the screen under the Media menu.
Since: 1.0.0
Line: 68
public function register_page( ): void;
Returns: void
enqueue_assets()
Enqueue the screen assets.
Since: 1.0.0
Line: 91
public function enqueue_assets( $hook_suffix ): void;
| Type | Name | Description |
|---|---|---|
string |
$hook_suffix |
Current admin page. |
Returns: void
render()
Render the screen.
Since: 1.0.0
Line: 144
public function render( ): void;
Returns: void
get_stats() static
Collect the numbers shown on the screen.
Since: 1.0.0
Line: 268
static public function get_stats( ): array;
Returns: array — int, optimized: int, remaining: int, saved: int, saved_human: string, source: int, source_human: string, saved_percent: float, done: int} Stats.
ajax_scan()
Build the queue.
Since: 1.0.0
Line: 308
public function ajax_scan( ): void;
Returns: void
ajax_step()
Process one batch.
Since: 1.0.0
Line: 328
public function ajax_step( ): void;
Returns: void
ajax_status()
Report the current numbers.
Since: 1.0.0
Line: 343
public function ajax_status( ): void;
Returns: void
ajax_reset()
Empty the queue.
Since: 1.0.0
Line: 356
public function ajax_reset( ): void;
Returns: void