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 3001 to 3050 of 4125 functions (Page 61 of 83)
_wp_register_default_font_collections()

Register the default font collections.

get_bookmark()

Retrieves bookmark data.

$bookmark $output $filter
get_bookmark_field()

Retrieves single bookmark data item or field.

$field $bookmark $context
get_bookmarks()

Retrieves the list of bookmarks.

$args
sanitize_bookmark()

Sanitizes all bookmark fields.

$bookmark $context
sanitize_bookmark_field()

Sanitizes a bookmark field.

$field $value $bookmark_id +1 more
clean_bookmark_cache()

Deletes the bookmark cache.

$bookmark_id
ms_upload_constants()

Defines Multisite upload constants.

ms_cookie_constants()

Defines Multisite cookie constants.

ms_file_constants()

Defines Multisite file constants.

ms_subdomain_constants()

Defines Multisite subdomain constants and handles warnings and notices.

_add_template_loader_filters()

Adds necessary hooks to resolve '_wp-find-template' requests.

wp_render_empty_block_template_warning()

Renders a warning screen for empty block templates.

$block_template
locate_block_template()

Finds a block template with equal or higher specificity than a given PHP template file.

$template $type $templates
resolve_block_template()

Returns the correct 'wp_template' to render for the request template type.

$template_type $template_hierarchy $fallback_template
_block_template_render_title_tag()

Displays title tag with content, regardless of whether theme has title-tag support.

get_the_block_template_html()

Returns the markup for the current template.

_block_template_viewport_meta_tag()

Renders a 'viewport' meta tag.

_strip_template_file_suffix()

Strips .php or .html suffix from template file names.

$template_file
_block_template_render_without_post_block_context()

Removes post details from block context when rendering a block template.

$context
_resolve_template_for_new_post()

Sets the current WP_Query to return auto-draft posts.

$wp_query
register_block_template()

Register a block template.

$template_name $args
unregister_block_template()

Unregister a block template.

$template_name
_block_bindings_post_meta_get_value()

Gets value for Post Meta source.

$source_args $block_instance
_register_block_bindings_post_meta_source()

Registers Post Meta source in the block bindings registry.

_block_bindings_pattern_overrides_get_value()

Gets value for the Pattern Overrides source.

$source_args $block_instance $attribute_name
_register_block_bindings_pattern_overrides_source()

Registers Pattern Overrides source in the Block Bindings registry.

read_big_endian()

Reads an unsigned integer with most significant bits first.

$input $num_bytes
read()

Reads bytes and advances the stream position by the same count.

$handle $num_bytes
skip()

Advances the stream position by the given offset.

$handle $num_bytes
wp_robots()

Displays the robots meta tag as necessary.

wp_robots_noindex()

Adds `noindex` to the robots meta tag if required by the site configuration.

$robots
wp_robots_noindex_embeds()

Adds `noindex` to the robots meta tag for embeds.

$robots
wp_robots_noindex_search()

Adds `noindex` to the robots meta tag if a search is being performed.

$robots
wp_robots_no_robots()

Adds `noindex` to the robots meta tag.

$robots
wp_robots_sensitive_page()

Adds `noindex` and `noarchive` to the robots meta tag.

$robots
wp_robots_max_image_preview_large()

Adds `max-image-preview:large` to the robots meta tag.

$robots
_wp_admin_bar_init()

Instantiates the admin bar object and set it up as a global for access elsewhere.

wp_admin_bar_render()

Renders the admin bar to the page based on the $wp_admin_bar->menu member var.

wp_admin_bar_wp_menu()

Adds the WordPress logo menu.

$wp_admin_bar
wp_admin_bar_sidebar_toggle()

Adds the sidebar toggle button.

$wp_admin_bar
wp_admin_bar_my_account_item()

Adds the "My Account" item.

$wp_admin_bar
wp_admin_bar_my_account_menu()

Adds the "My Account" submenu items.

$wp_admin_bar
wp_admin_bar_site_menu()

Adds the "Site Name" menu.

$wp_admin_bar
wp_admin_bar_edit_site_menu()

Adds the "Edit Site" link to the Toolbar.

$wp_admin_bar
wp_admin_bar_customize_menu()

Adds the "Customize" link to the Toolbar.

$wp_admin_bar
wp_admin_bar_my_sites_menu()

Adds the "My Sites/[Site Name]" menu and all submenus.

$wp_admin_bar
wp_admin_bar_shortlink_menu()

Provides a shortlink.

$wp_admin_bar
wp_admin_bar_edit_menu()

Provides an edit link for posts and terms.

$wp_admin_bar
wp_admin_bar_new_content_menu()

Adds "Add New" menu.

$wp_admin_bar