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 1201 to 1250 of 4125 functions (Page 25 of 83)
apply_block_core_search_border_styles()

This adds CSS rules for a given border property e.g. width or color. It

$attributes $property $wrapper_styles +2 more
styles_for_block_core_search()

Builds an array of inline styles for the search block.

$attributes
get_typography_classes_for_block_core_search()

Returns typography classnames depending on whether there are named font sizes/families.

$attributes
get_typography_styles_for_block_core_search()

Returns typography styles to be included in an HTML style tag.

$attributes
get_border_color_classes_for_block_core_search()

Returns border color classnames depending on whether there are named or custom border colors.

$attributes
get_color_classes_for_block_core_search()

Returns color classnames depending on whether there are named or custom text and background colors.

$attributes
block_core_list_render()

Adds the wp-block-list class to the rendered list block.

$attributes $content
register_block_core_list()

Registers the `core/list` block on server.

block_core_navigation_submenu_build_css_font_sizes()

Build an array with CSS classes and inline styles defining the font sizes

$context
block_core_navigation_submenu_render_submenu_icon()

Returns the top-level submenu SVG chevron icon.

render_block_core_navigation_submenu()

Renders the `core/navigation-submenu` block.

$attributes $content $block
register_block_core_navigation_submenu()

Register the navigation submenu block.

render_block_core_query_title()

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

$attributes
register_block_core_query_title()

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

render_block_core_query_pagination_numbers()

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

$attributes $content $block
register_block_core_query_pagination_numbers()

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

render_block_core_block()

Renders the `core/block` block on server.

$attributes
register_block_core_block()

Registers the `core/block` block.

render_block_core_avatar()

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

$attributes $content $block
get_block_core_avatar_border_attributes()

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

$attributes
register_block_core_avatar()

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

render_block_core_comment_date()

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

$attributes $content $block
register_block_core_comment_date()

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

render_block_core_comment_reply_link()

Renders the `core/comment-reply-link` block on the server.

$attributes $content $block
register_block_core_comment_reply_link()

Registers the `core/comment-reply-link` block on the server.

render_block_core_template_part()

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

$attributes
build_template_part_block_area_variations()

Returns an array of area variation objects for the template part block.

$instance_variations
build_template_part_block_instance_variations()

Returns an array of instance variation objects for the template part block

build_template_part_block_variations()

Returns an array of all template part block variations.

register_block_core_template_part()

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

render_block_core_calendar()

Renders the `core/calendar` block on server.

$attributes
register_block_core_calendar()

Registers the `core/calendar` block on server.

block_core_calendar_has_published_posts()

Returns whether or not there are any published posts.

block_core_calendar_update_has_published_posts()

Queries the database for any published post and saves

block_core_calendar_update_has_published_post_on_delete()

Handler for updating the has published posts flag when a post is deleted.

$post_id
block_core_calendar_update_has_published_post_on_transition_post_status()

Handler for updating the has published posts flag when a post status changes.

$new_status $old_status $post
wp_latest_comments_draft_or_post_title()

Get the post title.

$post
render_block_core_latest_comments()

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

$attributes
register_block_core_latest_comments()

Registers the `core/latest-comments` block.

render_block_core_post_author_name()

Renders the `core/post-author-name` block on the server.

$attributes $content $block
register_block_core_post_author_name()

Registers the `core/post-author-name` block on the server.

render_block_core_media_text()

Renders the `core/media-text` block on server.

$attributes $content
register_block_core_media_text()

Registers the `core/media-text` block renderer on server.

render_block_core_cover()

Renders the `core/cover` block on server.

$attributes $content
register_block_core_cover()

Registers the `core/cover` block renderer on server.

render_block_core_query_pagination_previous()

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

$attributes $content $block
register_block_core_query_pagination_previous()

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

render_block_core_post_author()

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

$attributes $content $block
register_block_core_post_author()

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

render_block_core_comments_pagination()

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

$attributes $content