Support

Account

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.

    Examples:
    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!