Tools
Tools class.
Namespace: WebberZone\AutoClose\Admin
Since: 3.0.0
Source: includes/admin/class-tools.php line 28
Methods
__construct()
Constructor.
Since: 3.0.0
Line: 36
public function __construct( );
add_tools_page()
Add tools page.
Since: 3.0.0
Line: 45
public function add_tools_page( );
tools_help()
Function to add the contextual help in the settings page.
Since: 3.0.0
Line: 62
public function tools_help( );
render_tools_page()
Render the tools page.
Since: 3.0.0
Line: 94
public function render_tools_page( );
render_config_report()
Render the on-demand configuration report.
Covers effective settings, ID/term exception counts, explicit closing date and reopen-window counts, and revision policies. Never includes post content, comment text, credentials, or individual post IDs.
Since: 3.2.0
Line: 270
public function render_config_report( array $report ): string;
| Type | Name | Description |
|---|---|---|
array |
$report |
Report data from Config_Report::build(). |
Returns: string — Rendered HTML.
render_status()
Render the cron health status panel.
Since: 3.2.0
Line: 395
public function render_status( array $status ): string;
| Type | Name | Description |
|---|---|---|
array |
$status |
Status report from Status::get(). |
Returns: string — Rendered HTML.
process_all()
Process all actions based on settings.
Since: 3.0.0
Line: 479
public function process_all( );
render_preview()
Render the read-only preview panel.
The preview reflects the same eligibility queries execution uses, but it is a snapshot: matching content or settings can change before Run is clicked, and this panel never writes content, settings, run history, or emails.
Since: 3.2.0
Line: 497
public function render_preview( array $preview ): string;
| Type | Name | Description |
|---|---|---|
array |
$preview |
Preview data from Runner::preview() or a single-operation preview. |
Returns: string — Rendered HTML.