Created
October 1, 2019 21:06
-
-
Save Pebblo/6e492dde02fae1418ede005c45c4ceb6 to your computer and use it in GitHub Desktop.
Example of a custom functions plugin
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 | |
/* | |
Plugin Name: Site plugin for corkandboardstudios.com | |
Description: Site specific code for corkandboardstudios.com | |
*/ | |
/* Begin Adding Functions Below This Line; Do not include an opening PHP tag as this sample code already includes one! */ | |
// Disable email match check for all users | |
add_filter( 'EED_WP_Users_SPCO__verify_user_access__perform_email_user_match_check', '__return_false' ); | |
// Set the EE Calendar to display the 'normal' tooltip for password protected events | |
add_filter( 'AFEE__EED_Espresso_Calendar__get_calendar_events__public_event_stati', 'tw_ee_calendar_no_password_required', 10, 1); | |
function tw_ee_calendar_no_password_required( $public_event_stati ) { | |
add_filter( 'post_password_required', '__return_false' ); | |
return $public_event_stati; | |
} | |
/* Stop Adding Functions */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment