skip to Main Content

How do I rewrite the path in the wordpress account menu?

I have the following code in the functions.php file. add_action( 'init', 'add_admin_tools_account_endpoint' ); function add_admin_tools_account_endpoint() { add_rewrite_endpoint( 'wp-admin', EP_PAGES ); } add_filter ( 'woocommerce_account_menu_items', 'custom_account_menu_items', 10 ); function custom_account_menu_items( $menu_links ){ if ( current_user_can('administrator') ) { $menu_links = array_slice( $menu_links,…

VIEW QUESTION
Back To Top
Search