Skip to content

Function

Add TML action type to the Customizer menu editor.

tml_filter_customize_nav_menu_available_item_types( array $item_types )

Parameters

$item_types array
The available item types.

Return

array The available item types.

Source

function tml_filter_customize_nav_menu_available_item_types( $item_types ) {
    $item_types[] = array(
        'title'      => __( 'Theme My Login Actions', 'theme-my-login' ),
        'type_label' => __( 'Theme My Login Action', 'theme-my-login' ),
        'type'       => 'tml_action',
        'object'     => 'tml_action',
    );
    return $item_types;
}

Uses

Changelog

VersionDescription
7.0 Introduced.