Get Admin Email address set in wordpress settings
I am currently developing the contact/support page for this website and need to retrieve the admin email as the ‘sent to’ address.
I know I could just add it in the theme option page and input an email address, but I’d rather keep it simple and access the admin email from the database.
I tried searching but got nowhere, until I catches the function get_bloginfo from codex.
Here I find that we can use
This function returns the “E-mail address” set in Settings > General. This data is retrieved from the “admin_email” record in thewp_options table.