'sv-premium', 'type' => 'yearly', 'prefix' => '£' ] ); $price = yeken_license_price( $args[ 'sku' ], $args[ 'type' ] ); if ( false === empty( $price ) ) { return sprintf( '%s%d', esc_html( $args[ 'prefix' ] ), $price ); } return ''; } add_shortcode( 'yeken-license-price', 'yeken_license_shortcode' ); }