Flip This Web Logo

WordPress PHP Hooks

0 like 0 dislike
161 views
by HairySeahorse
Here is the list of popular wordpress php hooks. You can use these hooks to display various elements on different parts of the web page.

Theme Hooks

<?php get_header(); ?>
<?php the_post(); ?>
<?php the_content(); ?>
<?php get_footer(); ?>
<?php comments_template(); ?>
<?php get_sidebar(); ?>
<?php the_author_posts_link(); ?>
<?php get_search_form(); ?>
<?php the_excerpt(); ?>
<?php echo bloginfo('description'); ?>
<?php the_widget( 'WP_Widget_Recent_Posts', '', $args ); ?>
<?php the_widget( 'WP_Widget_Recent_Posts', '', $args ); ?>
<?php the_widget( 'WP_Widget_Archives', 'dropdown=1', $args ); ?>
<?php the_widget( 'WP_Widget_Categories', 'dropdown=1', $args ); ?>
<?php the_widget( 'WP_Widget_Tag_Cloud', '', $args ); ?>
<?php the_widget( 'WP_Widget_Pages', '', $args ); ?>

Please let us know if you know any more hooks.

Please log in or register to reply to this post.

Related posts

0 like 0 dislike
0 comments 151 views
How to use shortcode is wordpress theme?

Sometime you need to put shortcode in wordpress theme files to display it on specific web page. You can use code below to put shortcode. Let us know if it worked for you.

by MagicalCyborg
Connect with us:
...