Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Aswin Giri

    (@aswingiri)

    Hello @yolandal

    You can use following hook to filter dropdown items.

    add_filter( 'um_myprofile_edit_menu_items', function( $items ){
    // you can change the dropdown items here
    return $items;
    } );

    You can also try this plugin if you are not comfortable with codes.

    • This reply was modified 1 year, 2 months ago by Aswin Giri.
    Thread Starter yolandal

    (@yolandal)

    Hello Aswin,

    In which file to I have to put this code? And how do I add the dropdown items? Can you give an example?
    The dropdown I would like to have is:
    – Wijzig profiel
    – Wijzig emailadres
    – Uitloggen

    Thank you for the tip of the other plugin, but I don’t want to add another plugin for 1 code. I do have a Snippets plugin and I know how to add a code to a php file.

    Thank you!

    Thread Starter yolandal

    (@yolandal)

    @missveronica,

    Also for this I don’t want to install an extra plugin.

    Can you give me some more guiding how to implement the code you mentioned before, with an example?

    @yolandal

    You can try this code snippet and change the original UM English texts to your own Dutch versions.

    add_filter( 'um_myprofile_edit_menu_items', function( $items ) {
    
        $items = array(
            'editprofile' => '<a href="' . esc_url( um_edit_profile_url() ) . '" class="real_url">' . __( 'Edit Profile', 'ultimate-member' ) . '</a>',
            'myaccount'   => '<a href="' . esc_url( um_get_core_page( 'account' ) ) . '" class="real_url">' . __( 'My Account', 'ultimate-member' ) . '</a>',
            'logout'      => '<a href="' . esc_url( um_get_core_page( 'logout' ) ) . '" class="real_url">' . __( 'Logout', 'ultimate-member' ) . '</a>',
            'cancel'      => '<a href="javascript:void(0);" class="um-dropdown-hide">' . __( 'Cancel', 'ultimate-member' ) . '</a>',
        );
        return $items;
    } );

    Install the code snippet into your active theme’s functions.php file

    Thread Starter yolandal

    (@yolandal)

    Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Change text in pull down of the Settings icon’ is closed to new replies.