Title: cannot access wp-admin
Last modified: August 31, 2016

---

# cannot access wp-admin

 *  Resolved [natalierose](https://wordpress.org/support/users/natalierose/)
 * (@natalierose)
 * [10 years ago](https://wordpress.org/support/topic/cannot-access-wp-admin-38/)
 * Hi,
 * I am having problems accessing my wp-admin. When I go to sign in [http://www.natalierose-events.co.uk/wp-admin](http://www.natalierose-events.co.uk/wp-admin)
   all I get it this:
 * function custom_use_customer_from_address ( $from_email, $obj ) { if ( is_a( 
   $obj, ‘WC_Email_New_Order’ ) ) { $address_details = $obj->object->get_address(‘
   billing’ ); if ( isset( $address_details[’email’] ) && ” != $address_details[’
   email’] ) { $from_email = $address_details[’email’]; } } return $from_email; }
   add_filter( ‘woocommerce_email_from_address’, ‘custom_use_customer_from_address’,
   null, 2 ); function custom_use_customer_from_name ( $from_name, $obj ) { if (
   is_a( $obj, ‘WC_Email_New_Order’ ) ) { $address_details = $obj->object->get_address(‘
   billing’ ); if ( isset( $address_details[‘first_name’] ) && ” != $address_details[‘
   first_name’] ) { $from_name = $address_details[‘first_name’]; } if ( isset( $
   address_details[‘last_name’] ) && ” != $address_details[‘last_name’] ) { $from_name.
   = ‘ ‘ . $address_details[‘last_name’]; } } return $from_name; } add_filter( ‘
   woocommerce_email_from_name’, ‘custom_use_customer_from_name’, null, 2 );
 * This was after adding the above to the functions.php file as stated to do in 
   the woo commerce documentation for sending emails with a customers name: [https://docs.woothemes.com/document/email-faq/#can-i-adjust-my-new-order-emails-to-show-my-customers-name-and-email-address-instead-of-my-own](https://docs.woothemes.com/document/email-faq/#can-i-adjust-my-new-order-emails-to-show-my-customers-name-and-email-address-instead-of-my-own)
 * Now since I can’t get into wp-admin, I don’t know how to go back and change it
   back to how it was. The theme I’m using is NovelPro.
 * Please help!
 * Thank you in advance.

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

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [10 years ago](https://wordpress.org/support/topic/cannot-access-wp-admin-38/#post-7430605)
 * You can fix the issue for now by removing what you added to the file.
 * To do so, access your server via [SFTP or FTP](https://codex.wordpress.org/FTP_Clients),
   or a file manager in your hosting account’s control panel, and edit the file 
   with a [plain text editor](https://codex.wordpress.org/Editing_Files#Text_Editors).
 * Next, I recommend reporting the issue at [https://wordpress.org/support/plugin/woocommerce#postform](https://wordpress.org/support/plugin/woocommerce#postform)
   so the plugin’s developers and support community can help you with this.
 *  Thread Starter [natalierose](https://wordpress.org/support/users/natalierose/)
 * (@natalierose)
 * [10 years ago](https://wordpress.org/support/topic/cannot-access-wp-admin-38/#post-7430607)
 * Thanks for the speedy response. I will try that and if I have any further issues,
   I’ll come back. Thanks again.
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [10 years ago](https://wordpress.org/support/topic/cannot-access-wp-admin-38/#post-7430608)
 * You’re welcome!

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

The topic ‘cannot access wp-admin’ is closed to new replies.

## Tags

 * [email](https://wordpress.org/support/topic-tag/email/)
 * [wp-admin](https://wordpress.org/support/topic-tag/wp-admin/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/cannot-access-wp-admin-38/#post-7430608)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
