WordPress at a glance

Other (рубрика)

comments_open()

Whether the current post is open for comments.

get_extended()

Divides content into 2 parts: before <!--more--> and after it. Returns an array with the resulting parts.

get_lastpostdate()

Retrieve the date that the last post was published.

get_lastpostmodified()

Get the timestamp of the last time any post was modified.

get_post_embed_html()

Retrieves the embed code for a specific post.

get_post_embed_url()

Retrieves the URL to embed a specific post in an iframe.

get_post_stati()

Get a list of post statuses.

get_post_statuses()

Retrieve all of the WordPress supported post statuses.

is_sticky()

Check if post is sticky.

pings_open()

Whether the current post is open for pings.

post_exists()

Determine if a post with the specified title (post_title) exists. In addition, for the check, you can pass post_content and post_date.

sanitize_post()

Sanitize every post field.

the_shortlink()

Displays the shortlink for a post.

url_to_postid()

Gets post, page ID by transmitted URL. Examine a URL and try to determine the post ID it represents.

wp_get_canonical_url()

Returns the canonical URL for a post.

wp_get_shortlink()

Returns a shortlink for a post, page, attachment, or site.

wp_transition_post_status()

Fires action hooks related to the transitioning of a post's status. (from draft to publish, from publish to private, etc.).