Skip to content
Docs
Get RestroPress

Action

rpress_reports_tabs

Updated
On this page

Fires inside the tab navigation of the reports screen, after the tab links.

Runs inside the nav element of the reports screen after the built-in tab links have been printed. Echo extra link elements here to add items to the tab bar.

Example#

function my_reports_nav_link() {
	echo '<a class="nav-tab" href="' . esc_url( admin_url( 'admin.php?page=rpress-reports&tab=loyalty' ) ) . '">' . esc_html__( 'Loyalty', 'my-plugin' ) . '</a>';
}
add_action( 'rpress_reports_tabs', 'my_reports_nav_link' );

Source#

Fired from:

  • includes/admin/reporting/reports.php (line 83), in rpress_reports_page()

See also#

Was this page helpful?