Created
October 4, 2013 04:32
-
-
Save jazbek/6820959 to your computer and use it in GitHub Desktop.
Fix comments form not working when using default events template
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
| <?php | |
| add_action( 'template_redirect', 'tribe_fix_comments' ); | |
| function tribe_fix_comments() { | |
| if ( tribe_get_option( 'tribeEventsTemplate', 'default' ) == '' ) { | |
| return apply_filters( 'comments_template', STYLESHEETPATH . '/comments.php' ); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment