Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialSRIKAR MOTURU
6,689 Pointsmy-account.php in the woocommerce templets doesnot have code from the video
do_action( 'woocommerce_account_navigation' ); ?>
<div class="woocommerce-MyAccount-content"> <?php /** * My Account content. * @since 2.6.0 */ do_action( 'woocommerce_account_content' ); ?> </div>
this is what i have in my-account.php not code mentioned in the above video,
2 Answers
Mark Truitt
17,230 PointsHi Srikar,
This is correct as the version in the video is older than the version you are using if you just recently downloaded woocommerce.
The version in the video is 2.0.0 and you are using 2.6.0. Is there a specific question/issue you are having or just noticed the code is not the same?
James Pask
13,600 PointsIf you look at the template file the line:
do_action( 'woocommerce_account_navigation' ); ?>
is now calling in the 'navigation.php' file from within the myaccount folder.
I then get a little stuck myself as I can't find what the 'woocommerce_before_account_navigation' is doing.
Hope that helps as a starter anyway.