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 3651 to 3700 of 4125 functions (Page 74 of 83)
_wp_image_editor_choose()

Tests which editors are capable of supporting the request.

$args
wp_plupload_default_settings()

Prints default Plupload arguments.

wp_prepare_attachment_for_js()

Prepares an attachment post object for JS, where it is expected

$attachment
wp_enqueue_media()

Enqueues all scripts, styles, settings, and templates necessary to use

$args
get_attached_media()

Retrieves media attached to the passed post.

$type $post
get_media_embedded_in_content()

Checks the HTML content for an audio, video, object, embed, or iframe tags.

$content $types
get_post_galleries()

Retrieves galleries from the passed post's content.

$post $html
get_post_gallery()

Checks a specified post's content for gallery and, if present, return the first

$post $html
get_post_galleries_images()

Retrieves the image srcs from galleries from a post's content, if present.

$post
get_post_gallery_images()

Checks a post's content for galleries and return the image srcs for the first found gallery.

$post
wp_maybe_generate_attachment_metadata()

Maybe attempts to generate attachment metadata, if missing.

$attachment
attachment_url_to_postid()

Tries to convert an attachment URL into a post ID.

$url
wpview_media_sandbox_styles()

Returns the URLs for CSS files used in an iframe-sandbox'd TinyMCE media view.

wp_register_media_personal_data_exporter()

Registers the personal data exporter for media.

$exporters
wp_media_personal_data_exporter()

Finds and exports attachments associated with an email address.

$email_address $page
_wp_add_additional_image_sizes()

Adds additional default image sub-sizes.

wp_show_heic_upload_error()

Callback to enable showing of the user error when uploading .heic images.

$plupload_settings
wp_getimagesize()

Allows PHP's getimagesize() to be debuggable when necessary.

$filename $image_info
wp_get_avif_info()

Extracts meta information about an AVIF file: width, height, bit depth, and number of channels.

$filename
wp_get_webp_info()

Extracts meta information about a WebP file: width, height, and type.

$filename
wp_get_loading_optimization_attributes()

Gets loading optimization attributes.

$tag_name $attr $context
wp_omit_loading_attr_threshold()

Gets the threshold for how many of the first content media elements to not lazy-load.

$force
wp_increase_content_media_count()

Increases an internal content media count variable.

$amount
wp_maybe_add_fetchpriority_high_attr()

Determines whether to add `fetchpriority='high'` to loading attributes.

$loading_attrs $tag_name $attr
wp_high_priority_element_flag()

Accesses a flag that indicates if an element is a possible candidate for `fetchpriority='high'`.

$value
wp_get_image_editor_output_format()

Determines the output format for the image editor.

$filename $mime_type
stripos()
$haystack $needle
_register_core_block_patterns_and_categories()

Registers the core block patterns and categories.

wp_normalize_remote_block_pattern()

Normalize the pattern properties to camelCase.

$pattern
_load_remote_block_patterns()

Register Core's official patterns from wordpress.org/patterns.

$deprecated
_load_remote_featured_patterns()

Register `Featured` (category) patterns from wordpress.org/patterns.

_register_remote_theme_patterns()

Registers patterns from Pattern Directory provided by a theme's

_register_theme_block_patterns()

Register any patterns that the active theme may provide under its

register_block_pattern()

Registers a new block pattern.

$pattern_name $pattern_properties
unregister_block_pattern()

Unregisters a block pattern.

$pattern_name
wp_styles()

Initializes $wp_styles if it has not been set.

wp_print_styles()

Displays styles that are in the $handles queue.

$handles
wp_add_inline_style()

Adds extra CSS styles to a registered stylesheet.

$handle $data
wp_register_style()

Registers a CSS stylesheet.

$handle $src $deps +2 more
wp_deregister_style()

Removes a registered stylesheet.

$handle
wp_enqueue_style()

Enqueues a CSS stylesheet.

$handle $src $deps +2 more
wp_dequeue_style()

Removes a previously enqueued CSS stylesheet.

$handle
wp_style_is()

Checks whether a CSS stylesheet has been added to the queue.

$handle $status
wp_style_add_data()

Adds metadata to a CSS stylesheet.

$handle $key $value
wp_register_tinymce_scripts()

Registers TinyMCE scripts.

$scripts $force_uncompressed
wp_default_packages_vendor()

Registers all the WordPress vendor scripts that are in the standardized

$scripts
wp_get_script_polyfill()

Returns contents of an inline script used in appending polyfill scripts for

$scripts $tests
wp_register_development_scripts()

Registers development scripts that integrate with `@wordpress/scripts`.

$scripts
wp_default_packages_scripts()

Registers all the WordPress packages scripts that are in the standardized

$scripts
wp_default_packages_inline_scripts()

Adds inline scripts required for the WordPress JavaScript packages.

$scripts