Forum Replies Created
- AuthorPosts
Andrea BettelliParticipantHi 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
Andrea BettelliParticipantHi Hasnain Abbas,
nice to give you more informations for to get better your splendid plugin!
Andrea
Andrea BettelliParticipantHi 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
Andrea BettelliParticipantHi 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
Andrea BettelliParticipantHi,
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
Andrea BettelliParticipantWithout 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- AuthorPosts
