Hello,
I would recommend that you simply remove those pages from the WP Customer Area menu by editing it from WP-admin > Menus > WP Customer Area.
I would also recommend that you edit those pages in WP-admin > Pages, unpublish them and set them as “private” instead. That way, your users won’t be able to access those pages.
You’ll also need to modify the function that display the avatar button icon located in the toolbar, under the menu. For that, you’ll need to create a custom plugin and insert a code snippet into it so that you can edit the inserted links. All that you need to do is to copy the original function into your plugin, rename it to something else, increase the priority of the filter, and comment out anything you don’t want. This is actually an example of what you should paste into your custom plugin to remove those 3 links:
/**
* Add a profile menu button to the toolbar
*
* @param $groups
*
* @return mixed
*/
function custom_cuar_toolbar_profile_button($groups)
{
$out = '';
$current_user = wp_get_current_user();
$current_avatar = get_avatar($current_user->user_email, 17);
if (!$current_avatar) {
$current_avatar = sprintf('%s <span class="caret ml5"></span>', $current_user->display_name);
}
$out .= '<div class="cuar-menu-avatar-icon btn-group">';
$out .= '<button type="button" class="btn btn-default dropdown-toggle mn" data-toggle="dropdown" aria-expanded="false">';
$out .= $current_avatar;
$out .= '</button>';
$out .= '<ul class="dropdown-menu animated animated-shorter fadeIn" role="menu" style="margin-top: 1px;">';
if (is_user_logged_in()) {
$addon_account = cuar_addon('customer-account');
$addon_account_edit = cuar_addon('customer-account-edit');
$addon_logout = cuar_addon('customer-logout');
$out .= '<li class="dropdown-header">'
. sprintf(__('Hello, %1$s', 'cuar'), $current_user->display_name)
. '</li>';
/**
if (current_user_can('cuar_view_account')) {
$out .= '<li><a href="' . $addon_account->get_page_url() . '">' . __('View profile', 'cuar') . '</a></li>';
}
if (current_user_can('cuar_edit_account')) {
$out .= '<li><a href="' . $addon_account_edit->get_page_url() . '">' . __('Manage account', 'cuar') . '</a></li>';
}
$out .= '<li><a href="' . $addon_logout->get_page_url() . '">' . __('Logout', 'cuar') . '</a></li>';
*/
} else {
$addon_login = cuar_addon('customer-login');
$addon_register = cuar_addon('customer-register');
$out .= '<li><a href="' . $addon_register->get_page_url() . '">' . __('Register', 'cuar') . '</a></li>';
$out .= '<li><a href="' . $addon_login->get_page_url() . '">' . __('Login', 'cuar') . '</a></li>';
}
$out .= '</ul>';
$out .= '</div>';
$groups['welcome'] = [
'type' => 'raw',
'html' => $out,
];
return $groups;
}
add_filter('cuar/core/page/toolbar', 'custom_cuar_toolbar_profile_button', 20);
Best regards.