Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2015
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.64 KB | None | 0 0
  1. <?php
  2. /*
  3. Plugin Name: Event Question Fix
  4. Plugin URI:
  5. Description: This Plugin corrects issues for event espresso where a new event editor cannot see all of the questions for events.
  6. Version:
  7. Author:
  8. Author URI:
  9. License:
  10. License URI:
  11. */
  12. //remove r&P question group filter so any event editor has all the questions:
  13. add_filter('espresso_get_question_groups_for_event_where', 'espresso_get_question_groups_for_event_where_custom', 9);
  14. function espresso_get_question_groups_for_event_where_custom() {
  15.  
  16.   remove_filter('espresso_get_question_groups_for_event_where', 'espresso_rp_basic_get_question_groups_for_event_where', 10);
  17.  
  18.   return '';
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement