Skip to content
Docs
Get RestroPress

Action

rpress_command_center_before_panels

Updated
On this page

Fires before the panels on the RestroPress Dashboard screen.

Runs on the Command Center screen (admin.php?page=rpress-dashboard), below the heading and above the #rp-command-center-panels container. Use it to print your own card or message. Core uses it to show the newest suggestion from the admin notification center. Output sits outside the panels container.

Available since RestroPress 3.5.1.

Example#

add_action( 'rpress_command_center_before_panels', 'my_dashboard_note', 20, 0 );
function my_dashboard_note() {
	echo '<p class="my-dashboard-note">' . esc_html__( 'Check the printer paper before service.', 'my-plugin' ) . '</p>';
}

Source#

Fired from:

  • includes/admin/dashboard/rp-dashboard.php (line 26)

See also#

Was this page helpful?