gutenberg_render_block_core_form_extra_fields

gutenberg_render_block_core_form_extra_fields

Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: gutenberg.17.9.0

apply_filters('gutenberg_render_block_core_form_extra_fields') is found 1 times:

  • /build/block-library/blocks/form.php line 36
    	// Add the method attribute. If it is not set, default to `post`.
    	$method = empty( $attributes['method'] ) ? 'post' : $attributes['method'];
    	$processed_content->set_attribute( 'method', $method );
    
    	$extra_fields = apply_filters( 'gutenberg_render_block_core_form_extra_fields', '', $attributes );
    
    	return str_replace(
    		'</form>',
    		$extra_fields . '</form>',
    		$processed_content->get_updated_html()
    	);
    

See this hook used in plugins: