get_post_status()

0.000357 сек
Быстро

If an attachment ID was passed to the function, it will return the status of the parent post. If the attachment is not attached to any post, it will be considered published — the function will return publish.

A list of basic statuses in WordPress:

publish
future
draft
pending
private
trash
auto-draft
inherit

Works based on: get_post()

Функции

Подпишитесь на новости

Никакого спама, только полезные материалы и новости.