[wp-trac] [WordPress Trac] #55920: Ability to query by post author in post_exists()

WordPress Trac noreply at wordpress.org
Sat Jun 4 22:57:51 UTC 2022


#55920: Ability to query by post author in post_exists()
-------------------------------+-------------------------------
 Reporter:  mcqTia             |      Owner:  (none)
     Type:  enhancement        |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Posts, Post Types  |    Version:  6.0
 Severity:  normal             |   Keywords:  changes-requested
  Focuses:                     |
-------------------------------+-------------------------------
 Needed the ability to determine if post exists by title && author when
 running wp_insert_post() in form submission.
 I was using this to create a list of user saved favourite posts.

 So this might be useful for others too

 function post_exists( $title, $content = '', $date = '', $type = '',
 $status = '', $author = '' ) {...}

 Pull Request #2783

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


More information about the wp-trac mailing list