-
-
Save codingmusician/26672c2c43f13e46ceb30d4d87cb3621 to your computer and use it in GitHub Desktop.
This file contains 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 | |
/** | |
* Description: Always show featured images on password protected events | |
* | |
* Usage: copy the snippet in your active (child) theme's functions.php file | |
* | |
* Plugins: Events Aggregator | |
* Author: Mike Cotton | |
* Last updated: May 3, 2019 | |
*/ | |
add_action( 'the_post', function(){ | |
remove_filter( 'tribe_event_featured_image', '__return_empty_string' ); | |
}, PHP_INT_MAX ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment