/** * Shows product shipping table * * @param type $atts * @return string */ function ic_product_shipping($atts) { $args = shortcode_atts(array('product' => get_the_ID()), $atts); return get_shipping_options_table($args['product']); }
/** * Shows shipping table * * @param object $post * @param array $single_names */ function show_shipping_options($post, $single_names) { echo get_shipping_options_table($post->ID, $single_names); }