Hey
Nice plugin, thanks.
I made a small change you might like to incorporate, I’m only changing the email “from” field when it is still the WordPress default. i.e. with the plugin as-is, I expect settings added to WooCommerce won’t take effect.
function get_from_email( $email ) {
// If it's already been changed by another plugin, return here.
if ( 0 !== strpos( $email, 'wordpress@' ) ) {
return $email;
}
$options = get_option( 'wp_from_email' );
if ( $options && ! empty( $options['email'] ) ) {
return $options['email'];
}
else {
return $email;
}
}
function get_from_name( $name ) {
// If it's already been changed by another plugin, return here.
if( 'WordPress' !== $name ) {
return $name;
}
$options = get_option( 'wp_from_email' );
if ( $options && ! empty( $options['name'] ) ) {
return $options['name'];
}
else {
return $name;
}
}
]]>
Hi,
I’m interested in adopting your plugin, what’s your opinion? Are you still here?
]]>NVM
]]>your script is broken, once the permalink is re-enabled it breaks all the permalinks, the web only keeps coming back to the home page you click any url it shows the home page only.
]]>