Skip to content
Docs
Get RestroPress

Action

rpress_user_dashboard_menu_items

Updated
On this page

Fires after the built-in customer dashboard sidebar items to add more.

Runs inside the sidebar list of the customer dashboard, after Profile, Orders and Addresses and before Logout. Print list items whose class is user-xyz; each opens the panel with the id user-xyz printed through rpress_user_dashboard_panels.

Available since RestroPress 3.5.

Example#

function my_dashboard_menu_item() {
	echo '<li class="user-my-rewards"><div><span>' . esc_html__( 'Rewards', 'my-plugin' ) . '</span></div></li>';
}
add_action( 'rpress_user_dashboard_menu_items', 'my_dashboard_menu_item', 10, 0 );

Notes#

Pair it with rpress_user_dashboard_panels so the matching panel exists.

Source#

Fired from:

  • templates/rpress-user-dashboard.php (line 84)

See also#

Was this page helpful?