errors->get_error_codes()): ?> error() ?>
true), 'objects') + get_post_types(array('_builtin' => false, 'show_ui' => true), 'objects') + get_post_types(array('_builtin' => false, 'show_ui' => false), 'objects'); foreach ($custom_types as $key => $ct) { if (in_array($key, array('attachment', 'revision', 'nav_menu_item', 'import_users', 'shop_webhook', 'acf-field', 'acf-field-group'))) unset($custom_types[$key]); } $custom_types = apply_filters( 'wpallexport_custom_types', $custom_types ); global $wp_version; $sorted_cpt = array(); foreach ($custom_types as $key => $cpt){ $sorted_cpt[$key] = $cpt; // Put users & comments & taxonomies after Pages if ( ! empty($custom_types['page']) && $key == 'page' || empty($custom_types['page']) && $key == 'post' ){ $sorted_cpt['taxonomies'] = new stdClass(); $sorted_cpt['taxonomies']->labels = new stdClass(); $sorted_cpt['taxonomies']->labels->name = __('Taxonomies','wp_all_export_plugin'); $sorted_cpt['comments'] = new stdClass(); $sorted_cpt['comments']->labels = new stdClass(); $sorted_cpt['comments']->labels->name = __('Comments','wp_all_export_plugin'); $sorted_cpt['users'] = new stdClass(); $sorted_cpt['users']->labels = new stdClass(); $sorted_cpt['users']->labels->name = __('Users','wp_all_export_plugin'); break; } } $order = array('shop_order', 'shop_coupon', 'shop_customer', 'product'); foreach ($order as $cpt){ if (!empty($custom_types[$cpt])) $sorted_cpt[$cpt] = $custom_types[$cpt]; } uasort($custom_types, "wp_all_export_cmp_custom_types"); foreach ($custom_types as $key => $cpt) { if (empty($sorted_cpt[$key])){ $sorted_cpt[$key] = $cpt; } } if ( class_exists('WooCommerce') ) { $reviewElement = new stdClass(); $reviewElement->labels = new stdClass(); $reviewElement->labels->name = __('WooCommerce Reviews', 'wp_all_export_plugin'); $sorted_cpt = $this->insertAfter($sorted_cpt, 'product', 'shop_review', $reviewElement); } ?>


>