SHARE
TWEET

Add Custom Review functions to Events Page (Workaround ONLY)

eventsmanager Mar 1st, 2016 (edited) 193 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.  This snippet will add a review function to events page (with the use of other plugin)
  3.  
  4.  NOTE: this is just a workaround and might not work 100% depending on your site setup
  5.  */
  6.  
  7. //1. download and install plugin - WP Customer Reviews
  8. //2. go to wp-content/plugins/wp-customer-reviews/wp-customer-reviews-admin.php
  9. //3. search this lines
  10.  
  11. /* add for pages and posts */
  12. add_meta_box($meta_box['id'], $meta_box['title'], array(&$this, 'wpcr_show_meta_box'), 'page', $meta_box['context'], $meta_box['priority']);
  13. add_meta_box($meta_box['id'], $meta_box['title'], array(&$this, 'wpcr_show_meta_box'), 'post', $meta_box['context'], $meta_box['priority']);
  14.  
  15. /* then add this lines below */
  16.  
  17. add_meta_box($meta_box['id'], $meta_box['title'], array(&$this, 'wpcr_show_meta_box'), 'event', $meta_box['context'], $meta_box['priority']);
  18. add_meta_box($meta_box['id'], $meta_box['title'], array(&$this, 'wpcr_show_meta_box'), 'event-recurring', $meta_box['context'], $meta_box['priority']);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top