Created
January 30, 2017 19:27
-
-
Save jaworowicz/5093e2fc1fa25b3f6bac2ad4b74ebfe0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'wp_head', 'jcz_disqus_controll' ); | |
function jcz_disqus_controll() { | |
if ( is_singular( array( 'post', 'page' ) ) && comments_open() ) | |
return; | |
remove_action( 'wp_footer', 'dsq_output_footer_comment_js' ); | |
remove_action( 'loop_end', 'dsq_loop_end' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment