Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
* Filter select and radio option names
function prefix_filter_field_option_name( $name, $key, $item, $product ) {
$product_price = $product->get_price();
$name .= ' - Only ' . $product_price;
return $name;
add_filter( 'prefix_filter_field_option_name', 'prefix_filter_field_option_name', 10, 4 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.