admin管理员组文章数量:1390670
I am using plugin FooEvents and want to export tickets attendees. But in the core files of the plugin, the export is only possible for 1 specific product. So if I want to export attendees for ticket "Startups" I need to do that from the edit product page and only tickets for "Startups" get exported. But I want to export all ticket attendees (Startups, Scaleups, Investors ...)
This is how the code for export looks like:
$events_query = new WP_Query( array('post_type' => array('event_magic_tickets'), 'posts_per_page' => -1, 'meta_query' => array( array( 'key' => 'WooCommerceEventsProductID', 'value' => $event ) )) );
$events = $events_query->get_posts();
Now if I understand correctly, the key thing is in the 'meta_query' and WooCommerceEventsProductID
So my question is: how do I change this to get all tickets and not only WooCommerceEventsProductID?
Best regards
本文标签: pluginsHow to change this WPQuery to get all ProductIDs and not only specific one
版权声明:本文标题:plugins - How to change this WP_Query to get all ProductIDs and not only specific one? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744601445a2615091.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论