Supporting (helper utility auxiliary) (tag)

array_is_list()

Checks if an array is a list.

calendar_week_mod()

Translates the entered integer to the number of days since the beginning of the week: 8=1 (8-7), 15=1 (15-7*2).

checked()

Used in checkbox and radio fields of the form. Made for convenience, checks two values and if they match, outputs the attribute checked='checked' for the current form field.

disabled()

Compares two given values, and if they are the same, displays disabled = 'disabled' – an attribute for a form input field.

fetch_feed()

Gets an external feed and parses it into data.

get_page_uri()

Gets the path (URL without the domain) to the specified permanent page. It collects the slugs of the current and all parent pages and combines them with a slash /.

get_url_in_content()

Extracts and returns the first URL found in the given string.

wp_die()

Kills WordPress execution and displays the specified HTML message.

wp_html_excerpt()

Safely extracts the specified number of characters from the specified HTML string.

WP_List_Util{}

Service class with utility methods for working with arrays and objects. Helps to sort and filter arrays.

wp_parse_str()

Parses the query string, for example, foo=1&foo2=2 and creates an array of data from it.

wp_redirect()

Redirects to the specified URL, you can specify the redirect status (301, 302...).

wp_slash()

Add slashes (\) to a string or array of strings.

wp_trim_words()

Trims the given text to the specified number of words.