Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

remove dashboard mya ccount

add_action('template_redirect', 'misha_redirect_to_orders_from_dashboard' );
 
function misha_redirect_to_orders_from_dashboard(){
 
	if( is_account_page() && empty( WC()->query->get_current_endpoint() ) ){
		wp_safe_redirect( wc_get_account_endpoint_url( 'orders' ) );
		exit;
	}
 
}
Source by rudrastyh.com #
 
PREVIOUS NEXT
Tagged: #remove #dashboard #mya #ccount
ADD COMMENT
Topic
Name
9+3 =