Advertisement
arie_cristianD

render comment before content

Mar 4th, 2024
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.38 KB | None | 0 0
  1. /* render comment before content */
  2.  
  3. add_action( 'init', 'reorder_comment_render' );
  4.  
  5. function reorder_comment_render() {
  6.     remove_action( 'jnews_single_post_after_content', array( JNews\Single\SinglePost::getInstance(), 'comment_post_hook' ), 60 );
  7.     add_action( 'jnews_single_post_before_content', array( JNews\Single\SinglePost::getInstance(), 'comment_post_hook' ), 60 );
  8. }
  9.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement