.

Hooks and Filters

Overview

Teydea Login Customizer provides PHP actions, PHP filters, and JavaScript filters that allow developers to extend or modify the plugin’s behavior. These hooks follow standard WordPress and @wordpress/hooks conventions.

PHP Actions

custom_login__before_with_form_column

Fires before the form column is rendered on the login page. Use this to add custom HTML content before the main login form area.

add_action( 'custom_login__before_with_form_column', function () {
    echo '<div class="my-custom-banner">Welcome</div>';
} );

custom_login__inside_column

Fires inside a layout column on the login page.

custom_login__after_with_form_column

Fires after the form column is rendered. Use this to add custom HTML content after the main login form area.

PHP Filters

custom_login__adjuster_classes

Modify the list of adjuster classes that generate CSS and markup changes for the login page.

add_filter( 'custom_login__adjuster_classes', function ( array $classes ): array {
    // Add a custom adjuster class
    $classes[] = My_Custom_Adjuster::class;
    return $classes;
} );

custom_login__markup_adjustments

Modify the DOMDocument representation of the login page HTML before it is sent to the browser. Receives a DOMDocument and a DOMXPath object.

add_filter(
    'custom_login__markup_adjustments',
    function ( DOMDocument $doc, DOMXPath $xpath ): DOMDocument {
        // Add a custom attribute to the login form
        $forms = $xpath->query( '//form[@id="loginform"]' );
        if ( $forms && $forms->length > 0 ) {
            $forms->item( 0 )->setAttribute( 'data-custom', 'value' );
        }
        return $doc;
    },
    10,
    2
);

custom_login__settings_loaded

Filter the settings data after it is loaded from the database. Useful for programmatically overriding settings.

custom_login__settings_fields_config

Filter the settings field definitions. Use this to add custom settings fields or modify validation rules.

JavaScript Filters

These filters use the @wordpress/hooks package and are available in the admin settings page context.

custom_login__settings_page_tabs

Filter the tab configuration for the settings page. Use this to add custom tabs.

custom_login__settings_page_design_panels

Filter the list of panels displayed in the Design tab.

custom_login__settings_page_design_templates

Filter the templates panel content in the Design tab.

custom_login__settings_page_functionality_panels

Filter the list of panels displayed in the Functionality tab.