Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Detecting specifically the My account "Dashboard" page

<?php
    global $wp;
    $request = explode( '/', $wp->request );

    // If NOT in My account dashboard page
    if( ! ( end($request) == 'my-account' && is_account_page() ) ){ 
?>
    <a href="<?php echo get_permalink( get_option('woocommerce_myaccount_page_id')); ?>">Back to my Account Dashboard</a>
<?php 
    } 
?>

<div class="myaccount_content">
    <?php
        do_action( 'woocommerce_account_content' );
    ?>
</div>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Detecting #specifically #My #account #page
ADD COMMENT
Topic
Name
2+1 =