Home / Admin / Add CSS classes to apply for vendor label
Duplicate Snippet

Embed Snippet on Your Site

Add CSS classes to apply for vendor label

Code Preview
php
<?php
/**
 * Add CSS class to apply for vendor label in a registration
 *
 * @param  string $class CSS classes.
 * @return string
 */
function wcv_add_apply_vendor_label_css_class( $class ) {
	$class .= 'example_css_class';
	return $class;
}
add_filter( 'wcvendors_vendor_registration_apply_label_css_classes', 'wcv_add_apply_vendor_label_css_class', 10, 1 );
/**
 * Add CSS class to term and condition label in a registration
 *
 * @param  string $class CSS classes.
 * @return string
 */
function wcv_add_term_label_css_class( $class ) {
	$class .= 'example_css_class';
	return $class;
}
add_filter( 'wcvendors_vendor_registration_term_label_css_classes', 'wcv_add_term_label_css_class', 10, 1 );

Comments

Add a Comment