WPDev.one
Core PHP Functions

Functions Reference

4125+ PHP functions available in the WordPress global namespace. Complete documentation with parameters, return values, and usage examples.

Showing 3451 to 3500 of 4125 functions (Page 70 of 83)
is_day()

Determines whether the query is for an existing day archive.

is_feed()

Determines whether the query is for a feed.

$feeds
is_comment_feed()

Is the query for a comments feed?

is_front_page()

Determines whether the query is for the front page of the site.

is_home()

Determines whether the query is for the blog homepage.

is_privacy_policy()

Determines whether the query is for the Privacy Policy page.

is_month()

Determines whether the query is for an existing month archive.

is_page()

Determines whether the query is for an existing single page.

$page
is_paged()

Determines whether the query is for a paged result and not for the first page.

is_preview()

Determines whether the query is for a post or page preview.

is_robots()

Is the query for the robots.txt file?

is_favicon()

Is the query for the favicon.ico file?

is_search()

Determines whether the query is for a search.

is_single()

Determines whether the query is for an existing single post.

$post
is_singular()

Determines whether the query is for an existing single post of any post type

$post_types
is_time()

Determines whether the query is for a specific time.

is_trackback()

Determines whether the query is for a trackback endpoint call.

is_year()

Determines whether the query is for an existing year archive.

is_404()

Determines whether the query has resulted in a 404 (returns no results).

is_embed()

Is the query for an embedded post?

is_main_query()

Determines whether the query is the main query.

have_posts()

Determines whether current WordPress query has posts to loop over.

in_the_loop()

Determines whether the caller is in the Loop.

rewind_posts()

Rewind the loop posts.

the_post()

Iterate the post index in the loop.

have_comments()

Determines whether current WordPress query has comments to loop over.

the_comment()

Iterate comment index in the comment loop.

wp_old_slug_redirect()

Redirect old slugs to the correct permalink.

_find_post_by_old_slug()

Find the post ID for redirecting an old slug.

$post_type
_find_post_by_old_date()

Find the post ID for redirecting an old date.

$post_type
setup_postdata()

Set up global post data.

$post
generate_postdata()

Generates post data.

$post
_()
$message
_wp_can_use_pcre_u()

Returns whether PCRE/u (PCRE_UTF8 modifier) is available for use.

$set
_is_utf8_charset()

Indicates if a given slug for a character set represents the UTF-8 text encoding.

$charset_slug
mb_substr()

Compat function to mimic mb_substr().

$string $start $length +1 more
_mb_substr()

Internal compat function to mimic mb_substr().

$str $start $length +1 more
mb_strlen()

Compat function to mimic mb_strlen().

$string $encoding
_mb_strlen()

Internal compat function to mimic mb_strlen().

$str $encoding
is_countable()

Polyfill for is_countable() function added in PHP 7.3.

$value
array_key_first()

Polyfill for array_key_first() function added in PHP 7.3.

$array
array_key_last()

Polyfill for `array_key_last()` function added in PHP 7.3.

$array
array_is_list()

Polyfill for `array_is_list()` function added in PHP 8.1.

$arr
str_contains()

Polyfill for `str_contains()` function added in PHP 8.0.

$haystack $needle
str_starts_with()

Polyfill for `str_starts_with()` function added in PHP 8.0.

$haystack $needle
str_ends_with()

Polyfill for `str_ends_with()` function added in PHP 8.0.

$haystack $needle
array_find()

Polyfill for `array_find()` function added in PHP 8.4.

$array $callback
array_find_key()

Polyfill for `array_find_key()` function added in PHP 8.4.

$array $callback
array_any()

Polyfill for `array_any()` function added in PHP 8.4.

$array $callback
array_all()

Polyfill for `array_all()` function added in PHP 8.4.

$array $callback