Created
May 18, 2022 16:14
-
-
Save leewillis77/820e748ed6dd031336968d9753a61e7d to your computer and use it in GitHub Desktop.
Amend the number of variations that will be included in expanded structured data
This file contains hidden or 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 | |
add_filter( 'woocommerce_gpf_max_variations_for_structured_data', function ($qty) { | |
// Modify '100' below to suit. | |
return 100; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment