Function
Determine if a form exists.
tml_form_exists( string $form )
Parameters
-
$formstring - The form name.
Return
bool
True if the form exists or false otherwise.
Source
function tml_form_exists( $form ) {
return apply_filters( 'tml_form_exists', array_key_exists( $form, tml_get_forms() ) );
}
Uses
Changelog
| Version | Description |
|---|---|
| 7.0 | Introduced. |