'all', 'product_id' => '' ), $atts)); $output = ''; if ( function_exists( 'awl_get_labels_html_by_position' ) ) { $output = awl_get_labels_html_by_position( $position, $product_id ); } return $output; } /* * Get label markup by label ID * @return string */ public function awl_get_label_by_id( $atts ) { extract(shortcode_atts(array( 'id' => 0, 'position' => 'before_title' ), $atts)); $output = ''; if ( $id && function_exists( 'awl_get_label_html_by_id' ) ) { $output = awl_get_label_html_by_id( $id, $position ); } return $output; } } endif; AWL_Shortcodes::instance();