• permatheque

    (@permatheque)


    Hi,

    I’m adapting the login widget from my them.

    I wanted that one time connected, a menu link give the url with the login inside to redirect :

    <?php global $user_ID, $user_identity, $user_level;
    if ( $user_ID ) : ?> …

    and the link to receipt :

    /settings”>Paramètres

    It worked well, but yesterday I installed WooCommerce and WPCrowfunding and now, ‘identity’ return the Name and First Name instead of the User Login.

    I would like not to touch core of woocommerce and wpcrowdfunding to can make update, do you know a way to get the login as first by modifying this lines ?

    I tried with user_info->display_login and others technics but nothing run..

    Thank you for helping

The topic ‘$user_identity give a false return’ is closed to new replies.