Action
rpress_user_dashboard_before
Fires before the customer dashboard markup for a logged-in customer.
Runs in the customer dashboard template, after the DataTables and MicroModal assets are printed and before the dashboard wrapper. It does not fire for logged-out visitors, who see the login form instead. Use it for notices or banners above the dashboard.
Example#
function my_dashboard_notice() {
echo '<p class="my-dashboard-notice">Free delivery on orders over 25 this week.</p>';
}
add_action( 'rpress_user_dashboard_before', 'my_dashboard_notice', 10, 0 );
Source#
Fired from:
templates/rpress-user-dashboard.php(line 54)
See also#
Was this page helpful?
