Content_Gaps_Page
Admin screen listing the questions Ask the Docs could not answer.
Namespace: WebberZone\Knowledge_Base\Pro\AI
Since: 3.2.0
Source: includes/pro/ai/class-content-gaps-page.php line 21
Methods
__construct()
Constructor.
Line: 47
public function __construct( );
removable_query_args()
Drop the notice argument from the address bar so a reload doesn’t repeat it.
Since: 3.2.0
Line: 62
public function removable_query_args( $args ): string[];
| Type | Name | Description |
|---|---|---|
string[] |
$args |
Query arguments. |
Returns: string[] — Query arguments.
get_capability() static
Capability needed to view the report.
Since: 3.2.0
Line: 75
static public function get_capability( ): string;
Returns: string — Capability.
add_menu()
Add the submenu page.
Since: 3.2.0
Line: 91
public function add_menu( ): void;
Returns: void
get_url() static
Page URL.
Since: 3.2.0
Line: 114
static public function get_url( array $args = ... ): string;
| Type | Name | Description |
|---|---|---|
array |
$args |
Extra query arguments. |
Returns: string — URL.
get_range() static
Read the date range from the request.
Dates are in the site’s time zone; the returned from_gmt and to_gmt cover
whole days.
Since: 3.2.0
Line: 137
static public function get_range( ): array;
Returns: array — Array with from, to (Y-m-d, site time), from_gmt and to_gmt.
handle_export()
Stream a CSV of unanswered questions before any output.
Since: 3.2.0
Line: 180
public function handle_export( ): void;
Returns: void
handle_empty()
Delete every recorded question, then return to the report.
Since: 3.2.0
Line: 226
public function handle_empty( ): void;
Returns: void
csv_safe() static
Stop spreadsheet apps treating visitor text as a formula.
Since: 3.2.0
Line: 245
static public function csv_safe( string $value ): string;
| Type | Name | Description |
|---|---|---|
string |
$value |
Cell value. |
Returns: string — Safe value.
render_page()
Render the page.
Since: 3.2.0
Line: 254
public function render_page( ): void;
Returns: void