Skip to content

Instantly share code, notes, and snippets.

@Pebblo
Created March 3, 2015 12:00
Show Gist options
  • Save Pebblo/bb99c190e8d08275f6c0 to your computer and use it in GitHub Desktop.
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.
<?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