render_block_core_template_part_none action-hookWP 5.9.0

Fires when a requested block template part does not exist in the database nor in the theme.

Usage

add_action( 'render_block_core_template_part_none', 'wp_kama_render_block_core_template_part_none_action', 10, 3 );

/**
 * Function for `render_block_core_template_part_none` action-hook.
 * 
 * @param string $template_part_id        The requested template part namespaced to the theme.
 * @param array  $attributes              The block attributes.
 * @param string $template_part_file_path Absolute path to the not found template path.
 *
 * @return void
 */
function wp_kama_render_block_core_template_part_none_action( $template_part_id, $attributes, $template_part_file_path ){

	// action...
}
$template_part_id(string)
The requested template part namespaced to the theme.
$attributes(array)
The block attributes.
$template_part_file_path(string)
Absolute path to the not found template path.

Changelog

Since 5.9.0 Introduced.

Where the hook is called

render_block_core_template_part()
render_block_core_template_part_none
wp-includes/blocks/template-part.php 103
do_action( 'render_block_core_template_part_none', $template_part_id, $attributes, $template_part_file_path );

Where the hook is used in WordPress

Usage not found.