Advertisement
fauzanjeg

Move Related Post Section Below Comment Section

Nov 16th, 2021
418
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.42 KB | None | 0 0
  1. /* Move Related Post Section Below Comment Section */
  2. function move_related_post_below_comment_section() {
  3.     remove_action( 'jnews_single_post_after_content', array( JNews\Single\SinglePost::getInstance(), 'related_post_hook' ), 40 );
  4.     add_action( 'jnews_single_post_after_content', array( JNews\Single\SinglePost::getInstance(), 'related_post_hook' ), 70 );
  5. }
  6. add_action( 'init', 'move_related_post_below_comment_section' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement