Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- This snippet will add a review function to events page (with the use of other plugin)
- NOTE: this is just a workaround and might not work 100% depending on your site setup
- */
- //1. download and install plugin - WP Customer Reviews
- //2. go to wp-content/plugins/wp-customer-reviews/wp-customer-reviews-admin.php
- //3. search this lines
- /* add for pages and posts */
- add_meta_box($meta_box['id'], $meta_box['title'], array(&$this, 'wpcr_show_meta_box'), 'page', $meta_box['context'], $meta_box['priority']);
- add_meta_box($meta_box['id'], $meta_box['title'], array(&$this, 'wpcr_show_meta_box'), 'post', $meta_box['context'], $meta_box['priority']);
- /* then add this lines below */
- add_meta_box($meta_box['id'], $meta_box['title'], array(&$this, 'wpcr_show_meta_box'), 'event', $meta_box['context'], $meta_box['priority']);
- add_meta_box($meta_box['id'], $meta_box['title'], array(&$this, 'wpcr_show_meta_box'), 'event-recurring', $meta_box['context'], $meta_box['priority']);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement