Title: general-template.php function
Last modified: September 21, 2021

---

# general-template.php function

 *  [Elias Parsa](https://wordpress.org/support/users/doctorcomedian/)
 * (@doctorcomedian)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/general-template-php-function/)
 * hi
    I need a function that changes the “wp-login.php” in general-template.php
   to “wp-in.php” someone help me, please.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [yogeshyadav20](https://wordpress.org/support/users/yogeshyadav20/)
 * (@yogeshyadav20)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/general-template-php-function/#post-14893292)
 * Hi [@doctorcomedian](https://wordpress.org/support/users/doctorcomedian/)
 * You should follow this step
 * [https://wordpress.stackexchange.com/questions/366798/can-i-and-should-i-change-the-login-url-from-functions-php](https://wordpress.stackexchange.com/questions/366798/can-i-and-should-i-change-the-login-url-from-functions-php)
 * Hope this will work for you
 * Thanks
 *  Thread Starter [Elias Parsa](https://wordpress.org/support/users/doctorcomedian/)
 * (@doctorcomedian)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/general-template-php-function/#post-14893469)
 * thanks [@yogeshyadav20](https://wordpress.org/support/users/yogeshyadav20/) ,
   but not a good idea for me.
    let me explain: I duplicate the wp-login.php file
   then rename the new one to wp-in.php, and change the wp-login.php permission 
   to block everyone to access it. then I change the wp-login.php in the general-
   template.php file. the problem is whenever WordPress has updated, the general-
   template.php backs to normal, and I don’t want the last thing to happen. and 
   I prefer to not use any plugins.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘general-template.php function’ is closed to new replies.

## Tags

 * [functions](https://wordpress.org/support/topic-tag/functions/)
 * [general-template.php](https://wordpress.org/support/topic-tag/general-template-php/)
 * [wp-login.php](https://wordpress.org/support/topic-tag/wp-login-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [Elias Parsa](https://wordpress.org/support/users/doctorcomedian/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/general-template-php-function/#post-14893469)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
