function mp_product_sc($atts) { extract(shortcode_atts(array('product_id' => false, 'title' => true, 'content' => 'full', 'image' => 'single', 'meta' => true), $atts)); return mp_product(false, $product_id, $title, $content, $image, $meta); }
/** * Returns related Product instead of standard payment forms for appropriate events. */ function process_event_payment_forms($form, $event_id) { if (!$this->_is_mp_present()) { return $form; } $event = new Eab_EventModel(get_post($event_id)); $recurring = $event->is_recurring_child(); $event_id = $recurring ? $recurring : $event_id; $product_id = get_post_meta($event_id, 'eab_product_id', true); if (!$product_id) { return $form; } return strip_shortcodes(mp_product(false, $product_id, false, 'excerpt')); }