Useful WordPress Functions

WordPress provide may useful functions. Many time we don’t have to reinvent the wheel. Here is quick summary of important functions

 

Function Remark
<?php echo get_theme_root_uri(); ?> This gives theme directory
<?php echo get_template_directory_uri(); ?> This gives parent theme
<?php echo get_stylesheet_directory_uri(); ?> This gives child theme

 

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.