post_exists


post_exists ( $title, $content = '', $date = '' )

Parameters:
  • (string) $title Post title
  • (string) $content Optional post content
  • (string) $date Optional post date
Returns:
  • (int) Post ID if post exists, 0 otherwise.
Defined at:

Description

Determine if a post exists based on title, content, and date

Related Functions

post_type_exists, tag_exists, term_exists, comment_exists, _post_states

Top Google Results

User discussions

wpseek mobile