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 1151 to 1200 of 4125 functions (Page 24 of 83)
render_block_core_query_pagination()

Renders the `core/query-pagination` block on the server.

$attributes $content
register_block_core_query_pagination()

Registers the `core/query-pagination` block on the server.

register_block_core_page_list_item()

Registers the `core/page-list-item` block on server.

render_block_core_loginout()

Renders the `core/loginout` block on server.

$attributes
register_block_core_loginout()

Registers the `core/loginout` block on server.

render_block_core_comments()

Renders the `core/comments` block on the server.

$attributes $content $block
register_block_core_comments()

Registers the `core/comments` block on the server.

comments_block_form_defaults()

Use the button block classes for the form-submit button.

$fields
enqueue_legacy_post_comments_block_styles()

Enqueues styles from the legacy `core/post-comments` block. These styles are

$block_name
register_legacy_post_comments_block()

Ensures backwards compatibility for any users running the Gutenberg plugin

render_block_core_post_featured_image()

Renders the `core/post-featured-image` block on the server.

$attributes $content $block
get_block_core_post_featured_image_overlay_element_markup()

Generate markup for the HTML element that will be used for the overlay.

$attributes
get_block_core_post_featured_image_border_attributes()

Generates class names and styles to apply the border support styles for

$attributes
register_block_core_post_featured_image()

Registers the `core/post-featured-image` block on the server.

render_block_core_file()

When the `core/file` block is rendering, check if we need to enqueue the `wp-block-file-view` script.

$attributes $content
register_block_core_file()

Registers the `core/file` block on server.

block_core_post_template_uses_featured_image()

Determines whether a block list contains a block that uses the featured image.

$inner_blocks
render_block_core_post_template()

Renders the `core/post-template` block on the server.

$attributes $content $block
register_block_core_post_template()

Registers the `core/post-template` block on the server.

render_block_core_site_logo()

Renders the `core/site-logo` block on the server.

$attributes
register_block_core_site_logo_setting()

Register a core site setting for a site logo

register_block_core_site_icon_setting()

Register a core site setting for a site icon

register_block_core_site_logo()

Registers the `core/site-logo` block on the server.

_override_custom_logo_theme_mod()

Overrides the custom logo with a site logo, if the option is set.

$custom_logo
_sync_custom_logo_to_site_logo()

Updates the site_logo option when the custom_logo theme-mod gets updated.

$value
_delete_site_logo_on_remove_custom_logo()

Deletes the site_logo when the custom_logo theme mod is removed.

$old_value $value
_delete_site_logo_on_remove_theme_mods()

Deletes the site logo when all theme mods are being removed.

_delete_site_logo_on_remove_custom_logo_on_setup_theme()

Hooks `_delete_site_logo_on_remove_custom_logo` in `update_option_theme_mods_$theme`.

_delete_custom_logo_on_remove_site_logo()

Removes the custom_logo theme-mod when the site_logo option gets deleted.

render_block_core_legacy_widget()

Renders the 'core/legacy-widget' block.

$attributes
register_block_core_legacy_widget()

Registers the 'core/legacy-widget' block.

handle_legacy_widget_preview_iframe()

Intercepts any request with legacy-widget-preview in the query param and, if

render_block_core_query_pagination_next()

Renders the `core/query-pagination-next` block on the server.

$attributes $content $block
register_block_core_query_pagination_next()

Registers the `core/query-pagination-next` block on the server.

block_core_heading_render()

Adds a wp-block-heading class to the heading block content.

$attributes $content
register_block_core_heading()

Registers the `core/heading` block on server.

render_block_core_comments_title()

Renders the `core/comments-title` block on the server.

$attributes
register_block_core_comments_title()

Registers the `core/comments-title` block on the server.

render_block_core_post_date()

Renders the `core/post-date` block on the server.

$attributes $content $block
register_block_core_post_date()

Registers the `core/post-date` block on the server.

render_block_core_site_title()

Renders the `core/site-title` block on the server.

$attributes
register_block_core_site_title()

Registers the `core/site-title` block on the server.

register_block_core_pattern()

Registers the `core/pattern` block on the server.

render_block_core_pattern()

Renders the `core/pattern` block on the server.

$attributes
render_block_core_comment_content()

Renders the `core/comment-content` block on the server.

$attributes $content $block
register_block_core_comment_content()

Registers the `core/comment-content` block on the server.

render_block_core_search()

Dynamically renders the `core/search` block.

$attributes
register_block_core_search()

Registers the `core/search` block on the server.

classnames_for_block_core_search()

Builds the correct top level classnames for the 'core/search' block.

$attributes
apply_block_core_search_border_style()

This generates a CSS rule for the given border property and side if provided.

$attributes $property $side +3 more