Advertisement
fauzanjeg

JNEWS Custom, Add Custom Code before Comment Sections

Oct 26th, 2022
971
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.42 KB | None | 0 0
  1. /**
  2.  * JNEWS Custom, Add Custom Code before Comment Sections
  3.  */
  4. function jcustom_add_any_code_before_comment_section() {
  5.     /** Add Any Code HTML, CSS, or JS Here */
  6.     ?>
  7.     <style> h1 { color: red; }</style>
  8.     <script>window.alert('123')</script>
  9.     <h1>**IM HERE**</h1>
  10.     <?php
  11. }
  12. add_action( 'jnews_single_post_after_content', 'jcustom_add_any_code_before_comment_section', 59 ); /** Hook Priority of Comment Section is 60 */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement