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.

How to get count of users having each role, as well as the count of all users?

By default WordPress having an function called count_users() to get count of users having each role, as well as the count of all users.
Check below example code for your reference.

$result = count_users();
echo 'There are ', $result['total_users'], ' total users';
foreach($result['avail_roles'] as $role => $count)
    echo ', ', $count, ' are ', $role, 's';
echo '.';

Please feel free to contact me if you need any further information.

How to disable email notification after password change?

To disable email notification after password change, Add the following code in your theme file or plugin files.

/* To disable email notification after password change */
add_filter( 'send_password_change_email', '__return_false' );

 

Please feel free to contact me if you need any further information.

How to get category ID from category name in WordPress?

By default WordPress having an function called get_cat_ID() to retrieve get category ID from category name. Please check the below sample code for how to get category ID from category name in WordPress. Replace ‘Category Name’ with your category name.

$categoryID = get_cat_ID('Category Name');

If you have any doubt, Please comment here.