根据标题、内容、日期和类型确定文章是否存在。
post_exists( string $title , string $content = ”, string $date = ”, string $type = ” )
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$title | (string) | 必需 | 职位名称。 |
$content | (string) | 可选 | 发布内容。 |
$date | (string) | 可选 | 发布日期。 |
$type | (string) | 可选 | 岗位类型。 |
返回(Return)
(int)Post ID如果Post存在,则为0。
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
5.2.0 | wp-admin/includes/post.php:755 | 0 | 4 |