Skip to content

wpallexport_custom_types #48

@trey8611

Description

@trey8611

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;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions