You are currently viewing Investment & Cryptocurrency website with User dashboard using WordPress

Investment & Cryptocurrency website with User dashboard using WordPress

User dashboard code

/* my account*/
.woocommerce-MyAccount-navigation {
display:none;
}
.woocommerce-account .woocommerce-MyAccount-content {
width: 100%;
}
/*Return to investment*/
add_filter( 'gettext', 'change_woocommerce_return_to_shop_text', 20, 3 );
function change_woocommerce_return_to_shop_text( $translated_text, $text, $domain ) {
    switch ( $translated_text ) {
        case 'Return to shop' :
        $translated_text = __( 'Return to Investment Plans', 'woocommerce' );
        break;
    }
    return $translated_text;
}
/*Shop page redirect*/
function custom_shop_page_redirect() {
    if( is_shop() ){
        wp_redirect( home_url( '/investment-plans/' ) );
        exit();
    }
}
add_action( 'template_redirect', 'custom_shop_page_redirect' );
/* Related Products*/
remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 );
Domain & Hosting bundle deals! Shared hosting with Namecheap!
https://kaetechdigital.com/hyip

Kwabena Asare

Kwabena Asare is a Digital Marketer, Website designer, Graphic designer and a blogger. He is the Chief editor at Kaetech Digital.