Define user variable in WooCommerce My account custom menu item content
The custom menu is displayed in My Account of woocommerce. I am making a custom menu with the code below. /** * Query registration */ function my_custom_query_vars($vars) { $vars[] = 'my-dosu-endpoint'; return $vars; } add_filter('query_vars', 'my_custom_query_vars', 0); function my_custom_my_account_menu_items($items) {…