Skip to content

Method

Unregister a form.

unregister_form( string|Theme_My_Login_Form $form )

public

Parameters

$form string|Theme_My_Login_Form
The form name or object.

Source

public function unregister_form( $form ) {
    if ( $form instanceof Theme_My_Login_Form ) {
        unset( $this->forms[ $form->get_name() ] );
    } else {
        unset( $this->forms[ $form ] );
    }
}

Uses

Used by

Changelog

VersionDescription
7.0 Introduced.