Last active
June 22, 2021 12:44
-
-
Save mitchellkrogza/f6a1973dbaad20c3664c5dcd16de155b to your computer and use it in GitHub Desktop.
Woocommerce Increase Variations per Page (Admin)
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
// 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