wpallexport_custom_types
trey8611 opened this issue · 0 comments
trey8611 commented
Can be used to add custom post types to the drop-down in WP All Export. Example of how to add WooCommerce Refunds:
add_filter( 'wpallexport_custom_types', 'my_add_custom_type', 10, 1 );
function my_add_custom_type( $custom_types ) {
$custom_types['shop_order_refund'] = new stdClass();
$custom_types['shop_order_refund']->labels = new stdClass();
$custom_types['shop_order_refund']->labels->name = __('WooCommerce Refunds','wp_all_export_plugin');
return $custom_types;
}