render_block_core_form_extra_fields

render_block_core_form_extra_fields

Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: gutenberg.19.6.4

apply_filters('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( '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: