Skip to content

Instantly share code, notes, and snippets.

@WillBrubaker
Created December 19, 2018 18:30
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 WillBrubaker/e03c44991483e50b6a79381999ed634f to your computer and use it in GitHub Desktop.
Save WillBrubaker/e03c44991483e50b6a79381999ed634f to your computer and use it in GitHub Desktop.
WooCommerce default variation manage stock checked
//not sure what to do with this code snippet? See https://www.thathandsomebeardedguy.com/what-do-i-do-with-these-code-snippets/
if ( is_admin() ) {
add_filter( 'woocommerce_product_variation_get_manage_stock', '__return_true' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment