Loading...

Andrea Bettelli

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: Login – Logout ,usermeta update #10003936
    Andrea Bettelli
    Participant

    Hi Hasnain Abbas,
    That’s work fantastic!
    Thank you very much!

    Sorry … have you the time for explain me what are the last 2 numbers of the code?
    add_action(‘wp_login’,’myCustomLoginHook’, 10, 2);

    Why is there on the Login function, but not on the Logout function?
    Thanks a lot again, gentleman!
    Andrea

    in reply to: Custom fields #10003923
    Andrea Bettelli
    Participant

    Hi Hasnain Abbas,
    nice to give you more informations for to get better your splendid plugin!
    Andrea

    in reply to: Login Widget #10003922
    Andrea Bettelli
    Participant

    Hi Hasnain Abbas,
    Thanks for your reply …
    My question was only about the missed links on your widget for open the dashboard or directly a new post.
    Actually you have only active the link for open the profile.
    Andrea

    in reply to: Login – Logout ,usermeta update #10003919
    Andrea Bettelli
    Participant

    Hi Hasnain Abbas,
    please, may I ask you to write a complete example for update_user_meta (pippo) for the event of Login and a complete example for update_user_meta (pappa) for the event of Logout functions?
    Thank you!
    Andrea

    in reply to: Login Widget #10003904
    Andrea Bettelli
    Participant

    Hi,
    finally I will leave the code for the Login as the following:

    
                if( ! current_user_can('administrator')) {
                echo '<div><a href="'.site_url( "/wp-admin/profile.php" ).'" class="pie_log_in_out" title="Profile">'.__("Profile","piereg").'</a></div>';
            }
        else
            {
                echo '<div><a href="'.admin_url().'" class="pie_log_in_out" title="DAshboard">'.__("Dashboard","piereg").'</a></div>';
            }
                echo '<div><a href="'.site_url( "/wp-admin/post-new.php" ).'" class="pie_log_in_out" title="New Post">'.__("New Post","piereg").'</a></div>';
    			echo '<div><a href="'.wp_logout_url().'" class="pie_log_in_out" title="Logout">'.__("Logout","piereg").'</a></div></div>';
                echo '<br />';
                echo '<br />';
                echo '<br />';
                echo '<br />';
    

    Good night
    Andrea

    in reply to: Login Widget #10003902
    Andrea Bettelli
    Participant

    Without make difference I chenged with the following lines of code in widget.php:

    
    			echo '<div class="member_div">';
    
                echo '<a href="'.admin_url().'" class="" title="Dashboard">'.__("Dashborad","piereg").'</a></div><br />';
    
                echo '<div><a href="'.site_url( "/wp-admin/post-new.php" ).'" class="" title="New Post">'.__("New Post","piereg").'</a></div><br />';
    
    			echo '<div><a href="'.wp_logout_url().'" class="" title="Logout">'.__("Logout","piereg").'</a></div></div>';
            echo '<br />';
            echo '<br />';
            echo '<br />';
            echo '<br />';
    

    Can be ok this code or have you some other solution?
    Thanks
    Andrea

Viewing 6 posts - 1 through 6 (of 6 total)