eventsmanager

Add Custom Review functions to Events Page (Workaround ONLY)

Mar 1st, 2016
308
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

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×