Skip to content

Method

Construct the instance.

__construct( )

protected

Source

protected function __construct() {
    /**
     * Fires when TML has been initialized.
     *
     * @since 7.0
     *
     * @param Theme_My_Login $tml The TML object.
     */
    do_action( 'tml_init', $this );

    // Run the activation hook
    register_activation_hook( THEME_MY_LOGIN_FILE, array( $this, 'activate' ) );

    // Run the deactivation hook
    register_deactivation_hook( THEME_MY_LOGIN_FILE, array( $this, 'deactivate' ) );
}

Uses

Used by

Changelog

VersionDescription
7.0 Introduced.