Skip to content

Function

Determine if a form exists.

tml_form_exists( string $form )

Parameters

$form string
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

VersionDescription
7.0 Introduced.