Skip to content
Docs
Get RestroPress

Action

rpress_reports_page_top

Updated
On this page

Fires on the reports screen after the tab navigation and before the tab content.

Runs after the tab bar of the reports screen and before the active tab content action. It fires for every tab. Use it to print a notice or a shared header.

Example#

function my_reports_page_top() {
	echo '<div class="notice notice-info inline"><p>' . esc_html__( 'Reports are cached for two minutes.', 'my-plugin' ) . '</p></div>';
}
add_action( 'rpress_reports_page_top', 'my_reports_page_top' );

Source#

Fired from:

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

See also#

Was this page helpful?