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 trialStu Cowley
26,287 PointsWordPress PHP @package, etc Question
Hi everyone,
I was looking through the code on a WordPress theme, and I noticed something in the comment at the top describing the template that I'm really curious to find out what it means. I did a Google search, but found nothing but ambiguous information.
I saw the following what I guess is code within each template of the default WordPress themes:
/**
* Template description...
*
* @package WordPress
* @subpackage Twenty_Sixteen
* @since Twenty_Sixteen 1.0
*/
Could someone please shed some light on what this means. I know it doesn't do anything to enhance the way WordPress works, but I do see it on other themes too.
Thanks
Stu :)
1 Answer
Adam Young
15,791 PointsIt's WordPress' take on the proposed PSR-5 documentation standard. A lot of info is available at https://make.wordpress.org/core/handbook/best-practices/inline-documentation-standards/php/ .