render_block_core_template_part_post

render_block_core_template_part_post

Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

do_action('render_block_core_template_part_post') is found 1 times:

  • /wp-includes/blocks/template-part.php line 65
    			 * @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( '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: