Last active
December 10, 2024 20:03
-
-
Save afragen/3c786cf1eb83ac2928b0b61344f16cd7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Send Andy Admin Email | |
* Description: Add my email as admin_email. | |
* Author: Andy Fragen | |
* License: GPLv2 or later | |
* Version: 0.1.0 | |
* Gist Plugin URI: https://gist.github.com/afragen/3c786cf1eb83ac2928b0b61344f16cd7 | |
*/ | |
add_filter( | |
'site_option_admin_email', | |
function ( $value, $option ) { | |
if ( 'admin_email' === $option ) { | |
$value .= ',[email protected]'; | |
} | |
return $value; | |
}, | |
10, | |
2 | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment