fauzanjeg

Change Comment Number

Nov 30th, 2021
634
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 );
RAW Paste Data