| Current File : /home/digitaw/www/wp-content/plugins/event-tickets/src/admin-views/commerce/metabox/sku.php |
<?php
use TEC\Tickets\Commerce\Module;
/**
* Filters the boolean value that controls whether a sku is displayed or not
*
* @since 4.7
*
* @param boolean $display_sku
*/
$display_sku = apply_filters( 'tribe_events_tickets_tpp_display_sku', true );
if ( ! $display_sku ) {
return;
}
?>
<div
class="ticket_advanced_<?php echo sanitize_html_class( Module::class ); ?> input_block tribe-dependent"
data-depends="#tec_tickets_ticket_provider"
data-condition="<?php echo esc_attr( Module::class ); ?>"
>
<label for="ticket_tpp_sku" class="ticket_form_label ticket_form_left"><?php esc_html_e( 'SKU:', 'event-tickets' ); ?></label>
<input
type="text"
id="ticket_sku"
name="ticket_sku"
class="ticket_field sku_input ticket_form_right"
size="14"
value="<?php echo esc_attr( $sku ); ?>"
>
<p class="description ticket_form_right">
<?php
echo esc_html(
sprintf(
__( 'A unique identifying code for each %s you\'re selling', 'event-tickets' ),
tribe_get_ticket_label_singular_lowercase( 'sku' )
)
);
?>
</p>
</div>