Skip to content

Instantly share code, notes, and snippets.

@Pebblo
Created October 1, 2019 21:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pebblo/6e492dde02fae1418ede005c45c4ceb6 to your computer and use it in GitHub Desktop.
Save Pebblo/6e492dde02fae1418ede005c45c4ceb6 to your computer and use it in GitHub Desktop.
Example of a custom functions plugin
<?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