form = $form;
}
abstract public function getId();
abstract public function getTitle();
abstract public function getDescription();
abstract public function getIcon(): string;
abstract public function render( GlobalPricingRule $pricingRule );
public function renderRadioOptions( $args = array(), $inline = false ) {
?>
'',
'id' => '',
'value' => '',
'label' => '',
'description' => '',
) );
?>
'',
'only_for_premium' => false,
) );
?>
can_use_premium_code() ) {
?>
•
'',
'id' => '',
'value' => '',
'options' => array(),
'description' => '',
'disabled' => false,
) );
?>
'',
'search_action' => '',
'value' => '',
'options' => null,
'placeholder' => '',
'multiple' => true,
'width' => '100%',
'description' => '',
'desc_tip' => true,
'minimum_input_length' => 1,
'css_class' => 'wc-product-search',
) );
?>
false,
'show_icon' => true,
'custom_class' => '',
) );
if ( ! $hint ) {
return;
}
if ( $args['only_for_new_rules'] && ! $this->form->isNewRule() ) {
return;
}
?>