post_exists
post_exists ( $title, $content = '', $date = '', $type = '', $status = '' )
Parameters:- (string) title Post title.
- (string) content Optional. Post content.
- (string) date Optional. Post date.
- (string) type Optional. Post type.
- (string) status Optional. Post status.
Returns:- (int) Post ID if post exists, 0 otherwise.
Defined at:Change Log: - Introduced in WordPress: 2.0.0
- Deprecated in WordPress: —
Description
Determines if a post exists based on title, content, date and type.