Skip to content

Instantly share code, notes, and snippets.

@woogists
Created March 9, 2018 15:10
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 woogists/497a8901baeabb6d2633082a9e267136 to your computer and use it in GitHub Desktop.
Save woogists/497a8901baeabb6d2633082a9e267136 to your computer and use it in GitHub Desktop.
[WooCommerce Photography] This snippet will prevent customers from changing permissions for a collection.
add_filter( 'woocommerce_photography_customers_can_change_visibility', '__return_true' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment