Advertisement
fauzanjeg

Change Comment Number

Nov 30th, 2021
1,030
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.27 KB | None | 0 0
  1. /* Change Comment Number */
  2. function change_comment_number( $comments_number, $post_id ) {
  3.     if ( '0' === $comments_number ) {
  4.         $comments_number = 'Let’s Discuss!';
  5.     }
  6.     return $comments_number;
  7. }
  8. add_filter( 'jnews_get_comments_number', 'change_comment_number', null, 2 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement