Created
March 3, 2015 12:00
-
-
Save Pebblo/bb99c190e8d08275f6c0 to your computer and use it in GitHub Desktop.
This plugin removes the individual questions/question groups per event admin so that all questions can be used by all event admins.
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: Event Question Fix | |
Plugin URI: | |
Description: This Plugin corrects issues for event espresso where a new event editor cannot see all of the questions for events. | |
Version: | |
Author: | |
Author URI: | |
License: | |
License URI: | |
*/ | |
//remove r&P question group filter so any event editor has all the questions: | |
add_filter('espresso_get_question_groups_for_event_where', 'espresso_get_question_groups_for_event_where_custom', 9); | |
function espresso_get_question_groups_for_event_where_custom() { | |
remove_filter('espresso_get_question_groups_for_event_where', 'espresso_rp_basic_get_question_groups_for_event_where', 10); | |
return ''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment