Source View: comment_loop_start

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

  • Action hooks look like this: do_action( "hook_name" )
  • Filter hooks look like this: apply_filters( "hook_name", "what_to_filter" ).

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
3190
3191           $comment = $this->next_comment();
3192
3193           if ( $this->current_comment == 0 ) {
3194                /**
3195                 * Fires once the comment loop is started.
3196                 *
3197                 * @since 2.2.0
3198                 */
3199                do_action( 'comment_loop_start' );
3200           }
3201      }
3202
3203      /**
3204       * Whether there are more comments available.
3205       *
3206       * Automatically rewinds comments when finished.
3207       *
3208       * @since 2.2.0