Skip to content

Instantly share code, notes, and snippets.

@leewillis77
Last active May 6, 2020 08:13
Show Gist options
  • Save leewillis77/2b58aa0d83b32d1280bfff0f72e5997d to your computer and use it in GitHub Desktop.
Save leewillis77/2b58aa0d83b32d1280bfff0f72e5997d to your computer and use it in GitHub Desktop.
Modify the number of product detail data entry fields available
<?php
add_filter( 'woocommerce_gpf_number_of_product_detail_fields', function ($x) {
// Change 5 to your desired number.
return 5;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment