Home › Forums › Front-end Issues › Permission denied when upload new image on media gallery field › Reply To: Permission denied when upload new image on media gallery field
Ok! I’ve resolved my self!
WooCommerce have a function in it’s core, callled: woocommerce_register_post_type_product
This function use the: register_post_type (default function in WP)
And in WooCommerce there is 1 params called: capability_type
This params change all default “post” or “posts” in WP, in new capabilities for WooCommerce.
edit_post become edit_product
edit_posts becomes edit_products
Hope it help someone in the future to resolve conflicts about WP media gallery in front-end with WooCommerce products!
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!