Untitled

mail@pastecode.io avatar
unknown
php
2 years ago
465 B
2
Indexable
Never
/*
 * acf/register_block_type_args
 * 
 * https://www.advancedcustomfields.com/resources/acf-register_block_type_args/
 */
add_filter('acf/register_block_type_args', 'my_acf_register_block_type_args');
function my_acf_register_block_type_args($args){
    
    if($args['name'] !== 'acf/cta_contact_form')
        return $args;
    
    $args['render_template'] = '';
    $args['render_callback'] = 'my_render_callback';
    
    return $args;
    
}