Skip to content

Instantly share code, notes, and snippets.

@plugin-republic
Last active April 1, 2024 08:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plugin-republic/332aae546e0a67358e37c67f6e9f0a73 to your computer and use it in GitHub Desktop.
Save plugin-republic/332aae546e0a67358e37c67f6e9f0a73 to your computer and use it in GitHub Desktop.
<?php
/**
* Filter group wrapper classes
* @param $classes Array
*/
function prefix_filter_group_wrapper_class( $classes, $group_id, $group, $product_id ) {
$classes[] = 'my-new-group-class';
return $classes;
}
add_filter( 'pewc_filter_group_wrapper_class', 'prefix_filter_group_wrapper_class', 10, 4 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment