New and updated in 5.8.0
-
Helper function that constructs a WP_Query args array from a `Query` block properties.
-
function_excerpt_render_inner_blocks()
Renders inner blocks from the allowed wrapper blocks for generating an excerpt.
-
Filters the list of blocks that can be used as wrapper blocks, allowing excerpts to be generated from the `innerBlocks` of these wrappers.
-
hookdelete_theme
Fires immediately before a theme deletion attempt.
-
hookdeleted_theme
Fires immediately after a theme deletion attempt.
-
Outputs the content of a tab in the Site Health screen.
-
functiondeactivated_plugins_notice()
Renders an admin notice when a plugin was deactivated during an update.
-
Filters the extra tabs for the Site Health navigation bar.
-
Fires when outputting the content of a custom Site Health tab.
-
functionwp_getimagesize()
Allows PHP’s getimagesize() to be debuggable when necessary.
-
Filters the list of allowed file extensions when sideloading an image from a URL.
-
Registers a block pattern.
Used by 0 functions | Uses 2 functions | Source: wp-includes/class-wp-block-patterns-registry.php:89 -
functionvalidate_theme_requirements()
Validates the theme requirements for WordPress version and PHP version.
-
functionvalidate_plugin_requirements()
Validates the plugin requirements for WordPress version and PHP version.
-
Constructor.
-
functionregister_block_type()
Registers a block type. The recommended way is to register a block type using the metadata stored in the `block.json` file.
-
hookwrite_your_story
Filters the body placeholder text.
-
functionget_block_categories()
Returns all the categories for block types that will be shown in the block editor.
-
Filters user data before the record is created or updated.
-
functionwp_get_image_mime()
Returns the real mime type of an image file.
-
Returns the theme’s post templates.
-
hookinsert_user_meta
Filters a user’s meta values and keys immediately after the user is created or updated and before any user meta is inserted or updated.
-
functionwp_dashboard_browser_nag()
Displays the browser update nag.
-
functionget_plugin_data()
Parses the plugin contents to retrieve plugin’s metadata.
-
functionmedia_sideload_image()
Downloads an image from the specified URL, saves it as an attachment, and optionally attaches it to a post.
-
functionpost_exists()
Determines if a post exists based on title, content, date and type.
-
functioncurrent_user_can()
Returns whether the current user has the specified capability.
-
functioncurrent_user_can_for_blog()
Returns whether the current user has the specified capability for a given site.
-
functionadd_theme_support()
Registers theme support for a given feature.
-
functionget_user_by()
Retrieves user info by a given field.