New and updated in 5.5.0
-
Filters the list of custom logo image attributes.
-
hookregister_setting
Fires immediately before the setting is registered but after its filters are in place.
-
Fires immediately before the setting is unregistered and after its filters have been removed.
-
hookset_404
Fires after a 404 is triggered.
-
functionrest_get_route_for_term()
Gets the REST API route for a term.
-
Filters the REST API route for a term.
-
Gets the REST route for the currently queried object.
-
Filters the REST route for the currently queried object.
-
functionrest_get_route_for_post()
Gets the REST API route for a post.
-
Filters the REST API route for a post.
-
Filters the response to remove any fields not available in the given context.
-
Sets the “additionalProperties” to false by default for all object definitions in the schema.
-
functionrest_sanitize_array()
Converts an array-like value to an array.
-
functionrest_is_object()
Determines if a given value is object-like.
-
functionrest_sanitize_object()
Converts an object-like value to an array.
-
functionrest_get_best_type_for_value()
Gets the best type for a value.
-
functionrest_handle_multi_type_schema()
Handles getting the best type for a multi-type schema.
-
Checks if an array is made up of unique items.
-
functionrest_stabilize_value()
Stabilizes a value following JSON Schema semantics.
-
functionrest_is_integer()
Determines if a given value is integer-like.
-
functionrest_is_array()
Determines if a given value is array-like.
-
functionrest_handle_doing_it_wrong()
Handles _doing_it_wrong errors.
-
Filters the arguments for registering a block type.
-
Filters the default context provided to a rendered block.
-
functiongenerate_block_asset_handle()
Generates the name for an asset based on the name of the block and the field name provided.
-
functionregister_block_script_handle()
Finds a script handle for the selected block metadata field. It detects when a path to file was provided and optionally finds a corresponding asset file with details necessary to register the script under automatically generated handle name. It returns unprocessed script handle otherwise.
-
functionregister_block_style_handle()
Finds a style handle for the block metadata field. It detects when a path to file was provided and registers the style under automatically generated handle name. It returns unprocessed style handle otherwise.
-
Registers a block type from the metadata stored in the `block.json` file.
-
functionremove_block_asset_path_prefix()
Removes the block asset’s path prefix if provided.