[wp-trac] [WordPress Trac] #21710: More hooks for WordPress Importer

WordPress Trac wp-trac at lists.automattic.com
Tue Aug 28 04:50:26 UTC 2012


#21710: More hooks for WordPress Importer
-------------------------+------------------------------
 Reporter:  batmoo       |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Import       |     Version:  3.4.1
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+------------------------------

Comment (by batmoo):

 Patch adds a number of new filters:

 * wp_import_categories (before categories are processed)
 * wp_import_tags (before tags are processed)
 * wp_import_terms (before terms are processed)
 * wp_import_posts (before posts are processed)
 * wp_import_post_data_raw (modify the raw post data pre-insert)
 * wp_import_post_data_processed (modify the processed post data pre-
 insert)
 * wp_import_post_terms (modify terms for a post)
 * wp_import_post_comments (modify comments for a post)
 * wp_import_post_meta (modify postmeta for a post)

 New actions introduced:

 * wp_import_post_exists (when a post already exists)
 * wp_import_insert_post (when a post is successfully inserted)
 * wp_import_insert_term (when a term is successfully inserted)
 * wp_import_insert_term_failed (when a term insert fails)
 * wp_import_set_post_terms (when terms for a post are added)
 * wp_import_insert_comment (when a comment for a post is added)

 Modified one existing filter:

 * import_post_meta_key (gets the {{{$post_id}}} and {{{$post}}} params
 passed in)

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21710#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list