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:
  • 5: .
  • 5: .

Description

Determines if a post exists based on title, content, date and type.

Related Functions

post_type_exists, tag_exists, term_exists, comment_exists, _post_states

Top Google Results

User discussions

wpseek mobile