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 2701 to 2750 of 4125 functions (Page 55 of 83)
wp_render_typography_support()

Renders typography styles/content to the block wrapper.

$block_content $block
wp_get_typography_value_and_unit()

Checks a string for a unit and value and returns an array

$raw_value $options
wp_get_computed_fluid_typography_value()

Internal implementation of CSS clamp() based on available min/max viewport

$args
wp_get_typography_font_size_value()

Returns a font-size value based on a given font-size preset.

$preset $settings
wp_register_alignment_support()

Registers the align block attribute for block types that support it.

$block_type
wp_apply_alignment_support()

Adds CSS classes for block alignment to the incoming attributes array.

$block_type $block_attributes
wp_register_spacing_support()

Registers the style block attribute for block types that support it.

$block_type
wp_apply_spacing_support()

Adds CSS classes for block spacing to the incoming attributes array.

$block_type $block_attributes
wp_register_custom_classname_support()

Registers the custom classname block attribute for block types that support it.

$block_type
wp_apply_custom_classname_support()

Adds the custom classnames to the output.

$block_type $block_attributes
wp_register_background_support()

Registers the style block attribute for block types that support it.

$block_type
wp_render_background_support()

Renders the background styles to the block wrapper.

$block_content $block
wp_get_layout_definitions()

Returns layout definitions, keyed by layout type.

wp_register_layout_support()

Registers the layout block attribute for block types that support it.

$block_type
wp_get_layout_style()

Generates the CSS corresponding to the provided layout.

$selector $layout $has_block_gap_support +4 more
wp_render_layout_support_flag()

Renders the layout config to the block wrapper.

$block_content $block
wp_add_parent_layout_to_parsed_block()

Check if the parent block exists and if it has a layout attribute.

$parsed_block $source_block $parent_block
wp_restore_group_inner_container()

For themes without theme.json file, make sure

$block_content $block
wp_restore_image_outer_container()

For themes without theme.json file, make sure

$block_content $block
wp_get_block_default_classname()

Gets the generated classname from a given block name.

$block_name
wp_apply_generated_classname_support()

Adds the generated classnames to the output.

$block_type
wp_get_block_style_variation_name_from_class()

Determines the block style variation names within a CSS class string.

$class_string
wp_resolve_block_style_variation_ref_values()

Recursively resolves any `ref` values within a block style variation's data.

$variation_data $theme_json
wp_render_block_style_variation_support_styles()

Renders the block style variation's styles.

$parsed_block
wp_render_block_style_variation_class_name()

Ensures the variation block support class name generated and added to

$block_content $block
wp_enqueue_block_style_variation_styles()

Enqueues styles for block style variations.

wp_register_block_style_variations_from_theme_json_partials()

Registers block style variations read in from theme.json partials.

$variations
wp_register_aria_label_support()

Registers the aria-label block attribute for block types that support it.

$block_type
wp_apply_aria_label_support()

Add the aria-label to the output.

$block_type $block_attributes
wp_should_skip_block_supports_serialization()

Checks whether serialization of the current block's supported properties

$block_type $feature_set $feature
wp_register_shadow_support()

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

$block_type
wp_apply_shadow_support()

Add CSS classes and inline styles for shadow features to the incoming attributes array.

$block_type $block_attributes
wp_get_elements_class_name()

Gets the elements class names.

$block
wp_should_add_elements_class_name()

Determines whether an elements class name should be added to the block.

$block $options
wp_render_elements_support_styles()

Render the elements stylesheet and adds elements class name to block as required.

$parsed_block
wp_render_elements_class_name()

Ensure the elements block support class name generated, and added to

$block_content $block
get_dashboard_blog()

Get the "dashboard blog", the blog where users without a blog edit their profile data.

generate_random_password()

Generates a random password.

$len
is_site_admin()

Determine if user is a site admin.

$user_login
graceful_fail()

Deprecated functionality to gracefully fail.

$message
get_user_details()

Deprecated functionality to retrieve user information.

$username
clear_global_post_cache()

Deprecated functionality to clear the global post cache.

$post_id
is_main_blog()

Deprecated functionality to determine if the current site is the main site.

validate_email()

Deprecated functionality to validate an email address.

$email $check_domain
get_blog_list()

Deprecated functionality to retrieve a list of all sites.

$start $num $deprecated
get_most_active_blogs()

Deprecated functionality to retrieve a list of the most active sites.

$num $display
wpmu_admin_do_redirect()

Redirect a user based on $_GET or $_POST arguments.

$url
wpmu_admin_redirect_add_updated_param()

Adds an 'updated=true' argument to a URL.

$url
get_user_id_from_string()

Get a numeric user ID from either an email address or a login.

$email_or_login
get_blogaddress_by_domain()

Get a full site URL, given a domain and a path.

$domain $path