acf_block_render_template хук-событиеACF 1.0

Or include template.

Использование

add_action( 'acf_block_render_template', 'wp_kama_acf_block_render_template_action', 10, 6 );

/**
 * Function for `acf_block_render_template` action-hook.
 * 
 * @param  $block      
 * @param  $content    
 * @param  $is_preview 
 * @param  $post_id    
 * @param  $wp_block   
 * @param  $context    
 *
 * @return void
 */
function wp_kama_acf_block_render_template_action( $block, $content, $is_preview, $post_id, $wp_block, $context ){

	// action...
}
$block
-
$content
-
$is_preview
-
$post_id
-
$wp_block
-
$context
-

Где вызывается хук

acf_render_block()
acf_block_render_template
acf/pro/blocks.php 650
do_action( 'acf_block_render_template', $block, $content, $is_preview, $post_id, $wp_block, $context );

Где используется хук в Advanced Custom Fields PRO

acf/pro/blocks.php 18
add_action( 'acf_block_render_template', 'acf_block_render_template', 10, 6 );