Skip to content

Instantly share code, notes, and snippets.

@mitchellkrogza
Last active June 22, 2021 12:44
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 mitchellkrogza/f6a1973dbaad20c3664c5dcd16de155b to your computer and use it in GitHub Desktop.
Save mitchellkrogza/f6a1973dbaad20c3664c5dcd16de155b to your computer and use it in GitHub Desktop.
Woocommerce Increase Variations per Page (Admin)
// NOTE: Setting this too high (even 50) can cause freezing when saving variations
// A 400 Bad Request can be registered on wpadmin-ajax.php when too high
add_filter( 'woocommerce_admin_meta_boxes_variations_per_page', 'woo_increase_variations_per_page' );
function woo_increase_variations_per_page() {
return 50;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment