gutenberg_render_block_core_template_part_post

gutenberg_render_block_core_template_part_post

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: gutenberg.17.9.0

do_action('gutenberg_render_block_core_template_part_post') is found 1 times:

  • /build/block-library/blocks/template-part.php line 61
    			 * @param array   $attributes         The block attributes.
    			 * @param WP_Post $template_part_post The template part post object.
    			 * @param string  $content            The template part content.
    			 */
    			do_action( 'gutenberg_render_block_core_template_part_post', $template_part_id, $attributes, $template_part_post, $content );
    		} else {
    			$template_part_file_path = '';
    			// Else, if the template part was provided by the active theme,
    			// render the corresponding file content.
    			if ( 0 === validate_file( $attributes['slug'] ) ) {
    				$block_template = get_block_file_template( $template_part_id, 'wp_template_part' );
    

See this hook used in plugins: