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 2401 to 2450 of 4125 functions (Page 49 of 83)
get_template()

Retrieves name of the active theme.

get_template_directory()

Retrieves template directory path for the active theme.

get_template_directory_uri()

Retrieves template directory URI for the active theme.

get_theme_roots()

Retrieves theme roots.

register_theme_directory()

Registers a directory that contains themes.

$directory
search_theme_directories()

Searches all registered theme directories for complete and valid themes.

$force
get_theme_root()

Retrieves path to themes directory.

$stylesheet_or_template
get_theme_root_uri()

Retrieves URI for themes directory.

$stylesheet_or_template $theme_root
get_raw_theme_root()

Gets the raw theme root relative to the content directory with no filters applied.

$stylesheet_or_template $skip_cache
locale_stylesheet()

Displays localized stylesheet link element.

switch_theme()

Switches the theme.

$stylesheet
validate_current_theme()

Checks that the active theme has the required files.

validate_theme_requirements()

Validates the theme requirements for WordPress version and PHP version.

$stylesheet
get_theme_mods()

Retrieves all theme modifications.

get_theme_mod()

Retrieves theme modification value for the active theme.

$name $default_value
set_theme_mod()

Updates theme modification value for the active theme.

$name $value
remove_theme_mod()

Removes theme modification name from active theme list.

$name
remove_theme_mods()

Removes theme modifications option for the active theme.

get_header_textcolor()

Retrieves the custom header text color in 3- or 6-digit hexadecimal form.

header_textcolor()

Displays the custom header text color in 3- or 6-digit hexadecimal form (minus the hash symbol).

display_header_text()

Whether to display the header text.

has_header_image()

Checks whether a header image is set or not.

get_header_image()

Retrieves header image for custom header.

get_header_image_tag()

Creates image tag markup for a custom header image.

$attr
the_header_image_tag()

Displays the image markup for a custom header image.

$attr
_get_random_header_data()

Gets random header image data from registered images in theme.

get_random_header_image()

Gets random header image URL from registered images in theme.

is_random_header_image()

Checks if random header image is in use.

$type
header_image()

Displays header image URL.

get_uploaded_header_images()

Gets the header images uploaded for the active theme.

get_custom_header()

Gets the header image data.

register_default_headers()

Registers a selection of default headers to be displayed by the custom header admin UI.

$headers
unregister_default_headers()

Unregisters default headers.

$header
has_header_video()

Checks whether a header video is set or not.

get_header_video_url()

Retrieves header video URL for custom header.

the_header_video_url()

Displays header video URL.

get_header_video_settings()

Retrieves header video settings.

has_custom_header()

Checks whether a custom header is set or not.

is_header_video_active()

Checks whether the custom header video is eligible to show on the current page.

get_custom_header_markup()

Retrieves the markup for a custom header.

the_custom_header_markup()

Prints the markup for a custom header.

get_background_image()

Retrieves background image for custom background.

background_image()

Displays background image path.

get_background_color()

Retrieves value for custom background color.

background_color()

Displays background color value.

_custom_background_cb()

Default custom background callback.

wp_custom_css_cb()

Renders the Custom CSS style element.

wp_get_custom_css_post()

Fetches the `custom_css` post for a given theme.

$stylesheet
wp_get_custom_css()

Fetches the saved Custom CSS content for rendering.

$stylesheet
wp_update_custom_css_post()

Updates the `custom_css` post for a given theme.

$css $args