Advance Happy New Year

As You Log Out Of Last Year
And Login To This New Year,
I Wish To Send You Happy New Year Wishes
Full Of Success, Prosperity, Happiness And Joy.
May This Be A Year Of Change Unto Your Life
May God Give You Protection And Good Health
So That You Live To See Other Years To Come

How to get ID of the logged-in User in Yii2?

Logged in user information will be stored in Yii::$app->user->identity variable. The authenticated user identity information can be retrieved via Yii::$app->user->identity.
You can get ID by using below code.

<?= \Yii::$app->user->identity->ID ?>

If you have any doubts, Please comment here.

How to hide/change WordPress login URL without plugin?

By default, wp-login.php file having all the codes to generate login page. There are 5 steps to hide/change WordPress login URL without plugin.

  1. Create a new file.
  2. Copy the code from your wp-login.php, then paste it into your new file.
  3. Replace each instance of wp-login.php with the new file name. Find and replace is your friend.
  4. Delete the wp-login.php file.
  5. Login through your new URL.

Please let me know, If you have any queries or feedback.