In this article

filter

jetpack_button_default_element

Filter the HTML element the Button block falls back to when the block itself does not specify one. Jetpack Forms uses this to default its submit button to `button` while a form renders, since an `a` inside a form can never submit it. Values outside ‘a’, ‘button’ and ‘input’ are ignored by the render callback.

Parameters

$element
string

The default element. One of 'a', 'button', or 'input'.

Changelog

How to use this hook

See “How to use actions and filters to customize Jetpack”.