Created
April 15, 2020 09:32
-
-
Save plugin-republic/153ad84fa51a4948258ade7427927405 to your computer and use it in GitHub Desktop.
Filter validation message for maximum number of child products
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 validation message for maximum number of child products | |
*/ | |
function prefix_filter_max_children_validation_notice( $message, $field_label, $max_products ) { | |
// You can write a custom message here | |
// $field_label is the name of the field | |
// $max_products is the maximum number of products allowed | |
return $message; | |
} | |
add_filter( 'pewc_filter_max_children_validation_notice', 'prefix_filter_max_children_validation_notice', 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment