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 1251 to 1300 of 4125 functions (Page 26 of 83)
register_block_core_comments_pagination()

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

render_block_core_widget_group()

Renders the 'core/widget-group' block.

$attributes $content $block
register_block_core_widget_group()

Registers the 'core/widget-group' block.

note_sidebar_being_rendered()

Make a note of the sidebar being rendered before WordPress starts rendering

$index
discard_sidebar_being_rendered()

Clear whatever we set in note_sidebar_being_rendered() after WordPress

block_core_page_list_build_css_colors()

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

$attributes $context
block_core_page_list_build_css_font_sizes()

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

$context
block_core_page_list_render_nested_page_list()

Outputs Page list markup from an array of pages with nested children.

$open_submenus_on_click $show_submenu_icons $is_navigation_child +5 more
block_core_page_list_nest_pages()

Outputs nested array of pages

$current_level $children
render_block_core_page_list()

Renders the `core/page-list` block on server.

$attributes $content $block
register_block_core_page_list()

Registers the `core/pages` block on server.

render_block_core_query()

Modifies the static `core/query` block on the server.

$attributes $content $block
register_block_core_query()

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

block_core_query_disable_enhanced_pagination()

Traverse the tree of blocks looking for any plugin block (i.e., a block from

$parsed_block
render_block_core_categories()

Renders the `core/categories` block on server.

$attributes $content $block
build_dropdown_script_block_core_categories()

Generates the inline script for a categories dropdown field.

$dropdown_id
register_block_core_categories()

Registers the `core/categories` block on server.

render_block_core_comment_edit_link()

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

$attributes $content $block
register_block_core_comment_edit_link()

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

render_block_core_footnotes()

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

$attributes $content $block
register_block_core_footnotes()

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

register_block_core_footnotes_post_meta()

Registers the footnotes meta field required for footnotes to work.

wp_add_footnotes_to_revision()

Adds the footnotes field to the revisions display.

$fields
wp_get_footnotes_from_revision()

Gets the footnotes field from the revision for the revisions screen.

$revision_field $field $revision
render_block_core_post_author_biography()

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

$attributes $content $block
register_block_core_post_author_biography()

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

render_block_core_comments_pagination_numbers()

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

$attributes $content $block
register_block_core_comments_pagination_numbers()

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

block_core_navigation_link_build_css_colors()

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

$context $attributes $is_sub_menu
block_core_navigation_link_build_css_font_sizes()

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

$context
block_core_navigation_link_render_submenu_icon()

Returns the top-level submenu SVG chevron icon.

block_core_navigation_link_maybe_urldecode()

Decodes a url if it's encoded, returning the same url if not.

$url
render_block_core_navigation_link()

Renders the `core/navigation-link` block.

$attributes $content $block
build_variation_for_navigation_link()

Returns a navigation link variation

$entity $kind
block_core_navigation_link_filter_variations()

Filters the registered variations for a block type.

$variations $block_type
block_core_navigation_link_build_variations()

Returns an array of variations for the navigation link block.

register_block_core_navigation_link()

Registers the navigation link block.

render_block_core_tag_cloud()

Renders the `core/tag-cloud` block on server.

$attributes
register_block_core_tag_cloud()

Registers the `core/tag-cloud` block on server.

render_block_core_post_content()

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

$attributes $content $block
register_block_core_post_content()

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

render_block_core_image()

Renders the `core/image` block on the server,

$attributes $content $block
block_core_image_get_lightbox_settings()

Adds the lightboxEnabled flag to the block data.

$block
block_core_image_render_lightbox()

Adds the directives and layout needed for the lightbox behavior.

$block_content $block
block_core_image_print_lightbox_overlay()
register_block_core_image()

Registers the `core/image` block on server.

block_core_navigation_get_menu_items_at_location()

Returns the menu items for a WordPress menu location.

$location
block_core_navigation_sort_menu_items_by_parent_id()

Sorts a standard array of menu items into a nested structure keyed by the

$menu_items
block_core_navigation_get_inner_blocks_from_unstable_location()

Gets the inner blocks for the navigation block from the unstable location attribute.

$attributes
block_core_navigation_add_directives_to_submenu()

Add Interactivity API directives to the navigation-submenu and page-list

$tags $block_attributes