Hi! The post object not work, it’s impossibile to reorder whith drag and drop! Please fix
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!
Ok, i found the solution. (but an UGLY solution, @elliot surely will do it better)
// includes $this->include_before_theme(); //add_action('plugins_loaded', array($this, 'include_before_theme'), 1); add_action('after_setup_theme', array($this, 'include_after_theme'), 1);
just disabled plugins_loaded
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!
© 2021 Advanced Custom Fields.