Skip to content

Function

Get all form fields.

tml_get_form_fields( string|Theme_My_Login_Form $form )

Parameters

$form string|Theme_My_Login_Form
The form name or object.

Return

array The form fields or false if the form doesn't exist.

Source

function tml_get_form_fields( $form ) {

    $form = tml_get_form( $form );
    if ( ! $form ) {
        return false;
    }

    return $form->get_fields();
}

Uses

Changelog

VersionDescription
7.0 Introduced.