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 1301 to 1350 of 4125 functions (Page 27 of 83)
block_core_navigation_build_css_colors()

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

$attributes
block_core_navigation_build_css_font_sizes()

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

$attributes
block_core_navigation_render_submenu_icon()

Returns the top-level submenu SVG chevron icon.

block_core_navigation_filter_out_empty_blocks()

Filter out empty "null" blocks from the block list.

$parsed_blocks
block_core_navigation_block_contains_core_navigation()

Returns true if the navigation block contains a nested navigation block.

$inner_blocks
block_core_navigation_get_fallback_blocks()

Retrieves the appropriate fallback to be used on the front of the

block_core_navigation_get_post_ids()

Iterate through all inner blocks recursively and get navigation link block's post IDs.

$inner_blocks
block_core_navigation_from_block_get_post_ids()

Get post IDs from a navigation link block instance.

$block
render_block_core_navigation()

Renders the `core/navigation` block on server.

$attributes $content $block
register_block_core_navigation()

Register the navigation block.

block_core_navigation_typographic_presets_backcompatibility()

Filter that changes the parsed attribute values of navigation blocks contain typographic presets to contain the values directly.

$parsed_block
block_core_navigation_parse_blocks_from_menu_items()

Turns menu item data into a nested array of parsed blocks

$menu_items $menu_items_by_parent_id
block_core_navigation_get_classic_menu_fallback()

Get the classic navigation menu to use as a fallback.

block_core_navigation_get_classic_menu_fallback_blocks()

Converts a classic navigation to blocks.

$classic_nav_menu
block_core_navigation_maybe_use_classic_menu_fallback()

If there's a classic menu then use it as a fallback.

block_core_navigation_get_most_recently_published_navigation()

Finds the most recently published `wp_navigation` Post.

render_block_core_post_excerpt()

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

$attributes $content $block
register_block_core_post_excerpt()

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

render_block_core_post_navigation_link()

Renders the `core/post-navigation-link` block on the server.

$attributes $content
register_block_core_post_navigation_link()

Registers the `core/post-navigation-link` block on the server.

block_core_home_link_build_css_colors()

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

$context
block_core_home_link_build_css_font_sizes()

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

$context
block_core_home_link_build_li_wrapper_attributes()

Builds an array with classes and style for the li wrapper

$context
render_block_core_home_link()

Renders the `core/home-link` block.

$attributes $content $block
register_block_core_home_link()

Register the home block

render_block_core_button()

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

$attributes $content
register_block_core_button()

Registers the `core/button` block on server.

add_shortcode()

Adds a new shortcode.

$tag $callback
remove_shortcode()

Removes hook for shortcode.

$tag
remove_all_shortcodes()

Clears all shortcodes.

shortcode_exists()

Determines whether a registered shortcode exists named $tag.

$tag
has_shortcode()

Determines whether the passed content contains the specified shortcode.

$content $tag
get_shortcode_tags_in_content()

Returns a list of registered shortcode names found in the given content.

$content
apply_shortcodes()

Searches content for shortcodes and filter shortcodes through their hooks.

$content $ignore_html
do_shortcode()

Searches content for shortcodes and filter shortcodes through their hooks.

$content $ignore_html
_filter_do_shortcode_context()

Filter the `wp_get_attachment_image_context` hook during shortcode rendering.

get_shortcode_regex()

Retrieves the shortcode regular expression for searching.

$tagnames
do_shortcode_tag()

Regular Expression callable for do_shortcode() for calling shortcode hook.

$m
do_shortcodes_in_html_tags()

Searches only inside HTML elements for shortcodes and process them.

$content $ignore_html $tagnames
unescape_invalid_shortcodes()

Removes placeholders added by do_shortcodes_in_html_tags().

$content
get_shortcode_atts_regex()

Retrieves the shortcode attributes regex.

shortcode_parse_atts()

Retrieves all attributes from the shortcodes tag.

$text
shortcode_atts()

Combines user attributes with known attributes and fill in defaults when needed.

$pairs $atts $shortcode
strip_shortcodes()

Removes all shortcode tags from the given content.

$content
strip_shortcode_tag()

Strips a shortcode tag based on RegEx matches against post content.

$m
remove_block_asset_path_prefix()

Removes the block asset's path prefix if provided.

$asset_handle_or_path
generate_block_asset_handle()

Generates the name for an asset based on the name of the block

$block_name $field_name $index
get_block_asset_url()

Gets the URL to a block asset.

$path
register_block_script_module_id()

Finds a script module ID for the selected block metadata field. It detects

$metadata $field_name $index
register_block_script_handle()

Finds a script handle for the selected block metadata field. It detects

$metadata $field_name $index