rule_condition_chips( $rule['conditions'] ); ?>
variables = $variables; $this->types = $types; $this->rules = $rules; $this->locales = $locales; } public function register() { add_action( 'glovario_admin_after_variable_form', array( $this, 'rules_panel' ) ); add_action( 'admin_post_glovario_save_rule', array( $this, 'save_rule' ) ); add_action( 'admin_post_glovario_delete_rule', array( $this, 'delete_rule' ) ); } public function rules_panel( $variable ) { if ( empty( $variable['id'] ) ) { echo '
' . esc_html__( 'Save the variable before adding conditional values.', 'glovario' ) . '