Created
November 9, 2017 16:36
-
-
Save n7studios/0520c1d2f185a01874af5a5c253d33f6 to your computer and use it in GitHub Desktop.
Comment Rating Field Pro Plugin: Manually Display / Output Comment Rating: https://www.wpzinc.com/documentation/comment-rating-field-pro-plugin/developers-manual-comment-rating-output/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* For developers and themes which do not make use of the WordPress wp_list_comments() function, | |
* the below code can be added. | |
* | |
* There must be a Field Group configured at Comment Rating Field Pro > Field Groups to display | |
* rating fields for the Post Type the visitor is viewing. | |
*/ | |
if ( function_exists( 'display_comment_rating' ) ) { | |
echo display_comment_rating( $comment_text, $post_id, $comment_id ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment