Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wpallexport_custom_types #48

Open
trey8611 opened this issue Jan 26, 2019 · 0 comments
Open

wpallexport_custom_types #48

trey8611 opened this issue Jan 26, 2019 · 0 comments

Comments

@trey8611
Copy link
Contributor

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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant