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 2651 to 2700 of 4125 functions (Page 54 of 83)
get_blog_option()

Retrieves option value for a given blog id based on name of option.

$id $option $default_value
add_blog_option()

Adds a new option for a given blog ID.

$id $option $value
delete_blog_option()

Removes an option by name for a given blog ID. Prevents removal of protected WordPress options.

$id $option
update_blog_option()

Updates an option for a particular blog.

$id $option $value +1 more
switch_to_blog()

Switches the current blog.

$new_blog_id $deprecated
restore_current_blog()

Restores the current blog, after calling switch_to_blog().

wp_switch_roles_and_user()

Switches the initialized roles and current user capabilities to another site.

$new_site_id $old_site_id
ms_is_switched()

Determines if switch_to_blog() is in effect.

is_archived()

Checks if a particular blog is archived.

$id
update_archived()

Updates the 'archived' status of a particular blog.

$id $archived
update_blog_status()

Updates a blog details field.

$blog_id $pref $value +1 more
get_blog_status()

Gets a blog details field.

$id $pref
get_last_updated()

Gets a list of most recently updated blogs.

$deprecated $start $quantity
_update_blog_date_on_post_publish()

Handler for updating the site's last updated date when a post is published or

$new_status $old_status $post
_update_blog_date_on_post_delete()

Handler for updating the current site's last updated date when a published

$post_id
_update_posts_count_on_delete()

Handler for updating the current site's posts count when a post is deleted.

$post_id $post
_update_posts_count_on_transition_post_status()

Handler for updating the current site's posts count when a post status changes.

$new_status $old_status $post
wp_count_sites()

Counts number of sites grouped by site status.

$network_id
register_block_bindings_source()

Registers a new block bindings source.

$source_name $source_properties
unregister_block_bindings_source()

Unregisters a block bindings source.

$source_name
get_all_registered_block_bindings_sources()

Retrieves the list of all registered block bindings sources.

get_block_bindings_source()

Retrieves a registered block bindings source.

$source_name
get_post_format()

Retrieve the format slug for a post

$post
has_post_format()

Check if a post has any of the given formats, or any format.

$format $post
set_post_format()

Assign a format to a post

$post $format
get_post_format_strings()

Returns an array of post format slugs to their translated and pretty display versions

get_post_format_slugs()

Retrieves the array of post format slugs.

get_post_format_string()

Returns a pretty, translated version of a post format slug

$slug
get_post_format_link()

Returns a link to a post format index.

$format
_post_format_request()

Filters the request to allow for the format prefix.

$qvs
_post_format_link()

Filters the post format term link to remove the format prefix.

$link $term $taxonomy
_post_format_get_term()

Remove the post format prefix from the name property of the term object created by get_term().

$term
_post_format_get_terms()

Remove the post format prefix from the name property of the term objects created by get_terms().

$terms $taxonomies $args
_post_format_wp_get_object_terms()

Remove the post format prefix from the name property of the term objects created by wp_get_object_terms().

$terms
wp_register_border_support()

Registers the style attribute used by the border feature if needed for block

$block_type
wp_apply_border_support()

Adds CSS classes and inline styles for border styles to the incoming

$block_type $block_attributes
wp_has_border_feature_support()

Checks whether the current block type supports the border feature requested.

$block_type $feature $default_value
wp_register_colors_support()

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

$block_type
wp_apply_colors_support()

Adds CSS classes and inline styles for colors to the incoming attributes array.

$block_type $block_attributes
_wp_get_presets_class_name()

Get the class name used on block level presets.

$block
_wp_add_block_level_presets_class()

Update the block content with block level presets class name.

$block_content $block
_wp_add_block_level_preset_styles()

Render the block level presets stylesheet.

$pre_render $block
wp_register_position_support()

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

$block_type
wp_render_position_support()

Renders position styles to the block wrapper.

$block_content $block
wp_register_dimensions_support()

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

$block_type
wp_apply_dimensions_support()

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

$block_type $block_attributes
wp_render_dimensions_support()

Renders server-side dimensions styles to the block wrapper.

$block_content $block
wp_register_typography_support()

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

$block_type
wp_apply_typography_support()

Adds CSS classes and inline styles for typography features such as font sizes

$block_type $block_attributes
wp_typography_get_preset_inline_style_value()

Generates an inline style value for a typography feature e.g. text decoration,

$style_value $css_property