WordPress: Difference between revisions
imported>Onny mNo edit summary |
imported>Onny mNo edit summary |
||
| Line 124: | Line 124: | ||
plugins = [ pkgs.wordpressPackages.plugins.static-mail-sender-configurator ]; | plugins = [ pkgs.wordpressPackages.plugins.static-mail-sender-configurator ]; | ||
extraConfig = '' | extraConfig = '' | ||
define ('WP_MAIL_FROM', 'noreply@ | // Enable the plugin | ||
if ( !defined('ABSPATH') ) | |||
define('ABSPATH', dirname(__FILE__) . '/'); | |||
require_once(ABSPATH . 'wp-settings.php'); | |||
require_once ABSPATH . 'wp-admin/includes/plugin.php'; | |||
activate_plugin( 'wordpress-plugin-static-mail-sender-configurator-${pkgs.wordpressPackages.plugins.static-mail-sender-configurator.version}/static-mail-sender-configurator.php' ); | |||
// Change sender mail address | |||
define ('WP_MAIL_FROM', 'noreply@localhost'); | |||
''; | ''; | ||
}; | }; | ||