Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Remove Comments on Attachment
- * @author Bill Erickson
- *
- */
- function be_remove_comments_on_attachment() {
- if( is_attachment() )
- remove_action( 'genesis_after_post', 'genesis_get_comments_template' );
- }
- add_action( 'genesis_meta', 'be_remove_comments_on_attachment' );
Add Comment
Please, Sign In to add comment