Recent

Dashboardclass

Dashboard

Admin Dashboard Class.

Namespace: WebberZone\Better_Search\Admin
Since: 3.3.0
Source: includes/admin/class-dashboard.php line 25

Methods

__construct()

Constructor class.

Since: 3.3.0
Line: 49

public function __construct(  );

render_page()

Render the settings page.

Since: 3.3.0
Line: 60

public function render_page(  );

admin_menu()

Admin Menu.

Since: 3.3.0
Line: 200

public function admin_menu(  );

admin_enqueue_scripts()

Enqueue scripts in admin area.

Since: 3.3.0
Line: 229

public function admin_enqueue_scripts( $hook );
Type Name Description
string $hook The current admin page.

get_chart_data()

Function to add an action to search for tags using Ajax.

Since: 3.3.0
Line: 256

public function get_chart_data(  );

fetch_searches_by_date() static

Fetch chart data for searches over time.

Since: 4.3.0
Line: 287

static public function fetch_searches_by_date( $from_date, $to_date, $network = ... ): array;
Type Name Description
string $from_date Start date in Y-m-d format.
string $to_date End date in Y-m-d format.
bool $network Whether to fetch network-wide data.

Returns: array — Chart data with date and searches.

get_tabs()

Array containing the settings’ sections.

Since: 3.3.0
Line: 354

public function get_tabs(  ): array;

Returns: array — Settings array

Get popular searches for a date range.

Since: 3.3.0
Line: 414

public function display_popular_searches( $args = ... ): string;
Type Name Description
string|array $args {

Returns: string — HTML table with popular searches.

Retrieve the popular searches.

Since: 3.3.0
Line: 474

public function get_popular_searches( $args = ... ): array;
Type Name Description
string|array $args {

Returns: array — Array of post objects.

help_tabs()

Generates the help tabs.

Since: 3.3.0
Line: 607

public function help_tabs(  );