Recent

Dashboard class

Dashboard

Admin Dashboard Class.

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

Methods

__construct()

Constructor class.

Since: 3.3.0
Line: 40

public function __construct(  );

render_page()

Render the settings page.

Since: 3.3.0
Line: 51

public function render_page(  );

admin_menu()

Admin Menu.

Since: 3.3.0
Line: 191

public function admin_menu(  );

admin_enqueue_scripts()

Enqueue scripts in admin area.

Since: 3.3.0
Line: 220

public function admin_enqueue_scripts( $hook );
TypeNameDescription
string$hookThe current admin page.

get_chart_data()

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

Since: 3.3.0
Line: 247

public function get_chart_data(  );

fetch_searches_by_date() static

Fetch chart data for searches over time.

Since: 4.3.0
Line: 278

static public function fetch_searches_by_date( $from_date, $to_date, $network = ... ): array;
TypeNameDescription
string$from_dateStart date in Y-m-d format.
string$to_dateEnd date in Y-m-d format.
bool$networkWhether 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: 332

public function get_tabs(  ): array;

Returns: array — Settings array

Get popular searches for a date range.

Since: 3.3.0
Line: 392

public function display_popular_searches( $args = ... ): string;
TypeNameDescription
string|array$args{

Returns: string — HTML table with popular searches.

Retrieve the popular searches.

Since: 3.3.0
Line: 452

public function get_popular_searches( $args = ... ): array;
TypeNameDescription
string|array$args{

Returns: array — Array of post objects.

help_tabs()

Generates the help tabs.

Since: 3.3.0
Line: 565

public function help_tabs(  );