• Resolved leekianseng

    (@leekianseng)


    hello,

    im using classified theme, just want to ask how to add shortcode to user dashboard?

    here is the code in my profile page:

    <li class="<?php echo $subpage == 'orders' ? esc_attr__( 'active' ) : '' ?>">
     <a href="<?php echo esc_url( add_query_arg( array( $classifieds_slugs['subpage'] => 'orders' ), $permalink ) ); ?>">
     <h4><?php esc_html_e( 'Orders', 'woocommerce' ) ?></h4>
                                    </a>
                                </li>
    <?php
    switch ( $subpage ) {
    case 'orders' include( classifieds_load_path( 'includes/profile-pages/view-orders.php' ) );
     break;	}
    	?>

    i already try change “orders” to “woo_wallet” and load path to woo-wallet.php, seem no luck, it doesn’t work.

    thanks.

    • This topic was modified 6 years, 11 months ago by leekianseng.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘adding shortcode to php’ is closed to new replies.