Last active
July 8, 2019 14:42
-
-
Save plugin-republic/b4e99b1a1748a3136872c32954304f11 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Filter field classes | |
*/ | |
function prefix_filter_single_product_classes( $classes, $item ) { | |
$classes[] = 'my-class-name'; | |
// You can also use $item to check the field ID and add classes conditionally | |
return $classes; | |
} | |
add_filter( 'pewc_filter_single_product_classes', 'prefix_filter_single_product_classes', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment