New and updated in 5.0.0
-
functionwp_default_packages_vendor()
Registers all the WordPress vendor scripts that are in the standardized `js/dist/vendor/` location.
-
functionwp_get_script_polyfill()
Returns contents of an inline script used in appending polyfill scripts for browsers which fail the provided tests. The provided array is a mapping from a condition to verify feature support to its polyfill script handle.
-
functionwp_default_packages_scripts()
Registers all the WordPress packages scripts that are in the standardized `js/dist/` location.
-
Adds inline scripts required for the WordPress JavaScript packages.
-
functionwp_tinymce_inline_scripts()
Adds inline scripts required for the TinyMCE in the block editor.
-
functionwp_default_packages()
Registers all the WordPress packages scripts.
-
functionwp_scripts_get_suffix()
Returns the suffix that can be used for the scripts.
-
Sets the last changed time for the ‘posts’ cache group.
-
functionwp_get_code_editor_settings()
Generates and returns code editor settings.
-
Core class used for interacting with block types.
-
Registers a block type.
-
Unregisters a block type.
-
Retrieves a registered block type.
-
Retrieves all registered block types.
-
Checks if a block type is registered.
-
Utility method to retrieve the main instance of the class.
-
functionrest_preload_api_request()
Append result of internal request to REST API for purpose of preloading data to be attached to a page.
-
Filters the search handlers to use in the REST search controller.
-
Get all available block attributes including possible layout attribute from Columns block.
-
Constructor.
-
methodWP_Block_Type::render()
Renders the block type output for given attributes.
-
Returns true if the block type is dynamic, or false otherwise. A dynamic block is one which defers its rendering to occur on-demand at runtime.
-
Validates attributes against the current block schema, populating defaulted and missing values.
-
Sets block type properties.
-
classWP_Block_Type
Core class representing a block type.
-
functionblock_version()
Returns the current version of the block format that the content string is using.
-
Filter to allow plugins to replace the server-side block parser.
-
functiondo_blocks()
Parses dynamic blocks out of `post_content` and re-renders them.
-
function_restore_wpautop_hook()
If do_blocks() needs to remove wpautop() from the `the_content` filter, this re-adds it afterwards, for subsequent `the_content` usage.