post_exists


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

Parameters:
  • (string) $title Post title.
  • (string) $content Optional post content.
  • (string) $date Optional post date.
  • (string) $type Optional post type.
Returns:
  • (int) Post ID if post exists, 0 otherwise.
Defined at:
Change Log:
  • 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