[wp-trac] [WordPress Trac] #47446: Tools > Export does not include term meta data for a custom post type

WordPress Trac noreply at wordpress.org
Fri May 31 15:38:54 UTC 2019


#47446: Tools > Export does not include term meta data for a custom post type
-------------------------+-----------------------------
 Reporter:  mclaurent    |      Owner:  (none)
     Type:  enhancement  |     Status:  assigned
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Export       |    Version:  5.2.1
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 Steps:
 # Register a public custom post type
 # Register a custom taxonomy with a custom term_meta
 # populate with dummy posts, terms and term meta values
 # go to tools > export and select your custom post type
 # The resulting XML is perfectly valid and includes all posts along with
 the terms of the taxonomy. Observe that none of the terms have their
 corresponding term_meta

 Expected:
 When exporting content of one custom post type, the term_meta should be
 included.

 Solution:
 I have not found one. Looking at wp-admin/includes/export.php:148 I can
 see that $terms is only populated when $args['content'] is set to all
 ("All Content"). Here the source I am referring to:
 https://github.com/WordPress/WordPress/blob/5.2.1/wp-
 admin/includes/export.php#L148

 Environment: WP 5.2.1, WAMP, PHP7.2

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47446>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list