[wp-trac] [WordPress Trac] #33721: Add filter to customize result of post_exists()

WordPress Trac noreply at wordpress.org
Fri Sep 4 07:13:04 UTC 2015


#33721: Add filter to customize result of post_exists()
-------------------------+------------------------------
 Reporter:  westonruter  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Import       |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+------------------------------

Comment (by westonruter):

 In [attachment:wordpress-importer.php.diff], a new
 `wp_import_existing_post` filter is introduced which allows plugins to
 override what post that `post_exists()` detects as being already imported
 for a given post. This also allows plugins to force a post to be imported.
 Additionally, it makes sure that the post ID mapping for such existing
 posts gets added to `processed_posts` for other posts to refer to during
 subsequent imports.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33721#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list