cannot access wp-admin
-
Hi,
I am having problems accessing my wp-admin. When I go to sign in https://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
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.
- The topic ‘cannot access wp-admin’ is closed to new replies.