astra_post_comments( string $output_filter = '' )
Function to get Number of Comments of Post
Description
Parameters
- $output_filter
-
(string) (Optional) Output filter.
Default value: ''
Return
(html) Markup.
Source
File: inc/blog/blog-config.php
function astra_post_comments( $output_filter = '' ) { $output = ''; ob_start(); if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) { ?> <span class="comments-link"> <?php /** * Get Comment Link * * @see astra_default_strings() */ comments_popup_link( astra_default_strings( 'string-blog-meta-leave-a-comment', false ), astra_default_strings( 'string-blog-meta-one-comment', false ), astra_default_strings( 'string-blog-meta-multiple-comment', false ) ); ?> </span> <?php } $output = ob_get_clean(); return apply_filters( 'astra_post_comments', $output, $output_filter ); }
Expand full source code Collapse full source code View on Trac