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 4051 to 4100 of 4125 functions (Page 82 of 83)
_resolve_home_block_template()

Returns the correct template for the site's home page.

wlwmanifest_link()

Displays the link to the Windows Live Writer manifest file.

wp_queue_comments_for_comment_meta_lazyload()

Queues comments for metadata lazy-loading.

$comments
wp_get_loading_attr_default()

Gets the default value to use for a `loading` attribute on an element.

$context
wp_img_tag_add_loading_attr()

Adds `loading` attribute to an `img` HTML tag.

$image $context
wp_tinycolor_bound01()

Takes input from [0, n] and returns it as [0, 1].

$n $max
_wp_tinycolor_bound_alpha()

Direct port of tinycolor's boundAlpha function to maintain consistency with

$n
wp_tinycolor_rgb_to_rgb()

Rounds and converts values of an RGB object.

$rgb_color
wp_tinycolor_hue_to_rgb()

Helper function for hsl to rgb conversion.

$p $q $t
wp_tinycolor_hsl_to_rgb()

Converts an HSL object to an RGB object with converted and rounded values.

$hsl_color
wp_tinycolor_string_to_rgb()

Parses hex, hsl, and rgb CSS strings using the same regex as TinyColor v1.4.2

$color_str
wp_get_duotone_filter_id()

Returns the prefixed id for the duotone filter for use as a CSS id.

$preset
wp_get_duotone_filter_property()

Returns the CSS filter property url to reference the rendered SVG.

$preset
wp_get_duotone_filter_svg()

Returns the duotone filter SVG string for the preset.

$preset
wp_register_duotone_support()

Registers the style and colors block attributes for block types that support it.

$block_type
wp_render_duotone_support()

Renders out the duotone stylesheet and SVG.

$block_content $block
wp_get_global_styles_svg_filters()

Returns a string containing the SVGs to be referenced as filters (duotone).

wp_global_styles_render_svg_filters()

Renders the SVG filters supplied by theme.json.

block_core_navigation_submenu_build_css_colors()

Build an array with CSS classes and inline styles defining the colors

$context $attributes $is_sub_menu
_wp_theme_json_webfonts_handler()

Runs the theme.json webfonts handler.

print_embed_styles()

Prints the CSS in the embed iframe header.

print_emoji_styles()

Prints the important emoji-related styles.

wp_admin_bar_header()

Prints style and scripts for the admin bar.

_admin_bar_bump_cb()

Prints default admin bar callback.

wp_update_https_detection_errors()

Runs a remote HTTPS request to detect whether HTTPS supported, and stores potential errors.

wp_img_tag_add_decoding_attr()

Adds `decoding` attribute to an `img` HTML tag.

$image $context
_inject_theme_attribute_in_block_template_content()

Parses wp_template content and injects the active theme's

$template_content
_remove_theme_attribute_in_block_template_content()

Parses a block template and removes the theme attribute from each template part.

$template_content
the_block_template_skip_link()

Prints the skip-link script & styles.

block_core_query_ensure_interactivity_dependency()

Ensure that the view script has the `wp-interactivity` dependency.

block_core_file_ensure_interactivity_dependency()

Ensure that the view script has the `wp-interactivity` dependency.

block_core_image_ensure_interactivity_dependency()

Ensures that the view script has the `wp-interactivity` dependency.

wp_render_elements_support()

Updates the block content with elements class names.

$block_content $block
wp_interactivity_process_directives_of_interactive_blocks()

Processes the directives on the rendered HTML of the interactive blocks.

$parsed_block
wp_get_global_styles_custom_css()

Gets the global styles custom CSS from theme.json.

wp_enqueue_global_styles_custom_css()

Enqueues the global styles custom css defined via theme.json.

wp_create_block_style_variation_instance_name()

Generate block style variation instance name.

$block $variation
current_user_can_for_blog()

Returns whether the current user has the specified capability for a given site.

$blog_id $capability $args
wp_add_editor_classic_theme_styles()

Loads classic theme styles on classic themes in the editor.

$editor_settings
get_the_author()

Retrieves the author of the current post.

$deprecated
the_author()

Displays the name of the author of the current post.

$deprecated $deprecated_echo
get_the_modified_author()

Retrieves the author who last edited the current post.

the_modified_author()

Displays the name of the author who last edited the current post,

get_the_author_meta()

Retrieves the requested data of the author of the current post.

$field $user_id
the_author_meta()

Outputs the field from the user's DB object. Defaults to current post's author.

$field $user_id
get_the_author_link()

Retrieves either author's link or author's name.

the_author_link()

Displays either author's link or author's name.

get_the_author_posts()

Retrieves the number of posts by the author of the current post.

the_author_posts()

Displays the number of posts by the author of the current post.

get_the_author_posts_link()

Retrieves an HTML link to the author page of the current post's author.