Search
 
SCRIPT & CODE EXAMPLE
 

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;
	}
 
}
Comment

PREVIOUS NEXT
Code Example
Php :: Add a watermark to a new PDF document 
Php :: old codestar text field 
Php :: Laravel group collection and sort by the biggest value 
Php :: laravel collection tap 
Php :: how to add accept and decline button in php form 
Php :: cake php 2.x sql dump 
Php :: modifier laravel migration to add a comment a column (MySQL/PostgreSQL) 
Php :: PHP Superglobal - $_GET 
Php :: how to use pg_dropcluster 
Php :: mysqli_query() expects parameter 1 to be mysqli 
Php :: how to put cloth on 3d model using javascript and php 
Php :: how to set tinyint default 0 laravel migration 
Php :: php+js,code 
Php :: install php 7.4 
Php :: php ffi get load average 
Php :: how to cut middle part of text php 
Php :: vault deployment in production 
Php :: ttl jwt 
Php :: keep multiple values in select box after reload in php 
Php :: php debug backtrace last function 
Php :: php loop array PDO remove keys 
Php :: many to many relationship laravel example 
Php :: app/View/Errors/missing_controller.ctp 
Php :: laravel eloquent where value less then 5 and greter then 0 
Php :: how to access laragon phpmyadmin in local network 
Php :: how to payment credit card in codeigniter authorized.net 
Php :: datatables compactible with bootstrap v4 
Php :: function placing bet in guide using php 
Php :: redaxo urlGenerator, urlGenerator::getId(), Class "UrlGenerator" not found 
Php :: test php for errors terminal 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =