Function
Determine if forms should use AJAX or not.
tml_use_ajax( )
Return
bool
Whether forms should use AJAX or not.
Source
function tml_use_ajax() {
$use_ajax = get_site_option( 'tml_ajax', false );
/**
* Filter whether forms should use AJAX or not.
*
* @since 7.1.1
*
* @param bool $enable_ajax Whether forms should use AJAX or not.
*/
return (bool) apply_filters( 'tml_use_ajax', $use_ajax );
}
Uses
Used by
Changelog
| Version | Description |
|---|---|
| 7.1.1 | Introduced. |