Hi, I want to add extra config code in the wordpress installation when it is first created using this command... sudo site example.com -wp=default
I want to add the following lines below in all sites wp-config... I'm trying to keep my server space low from using the same resources. How can I do this?
define( 'WP_PLUGIN_DIR', dirname(__FILE__) . '/wp-content/mydir/plugins' );
define( 'WP_PLUGIN_URL', 'http://example.com/wp-content/mydir/plugins' );
I don't understand, just add it. You are free to add whatever you want, just edit the wp-config file and add it.
To change the DB host since the beginning you can pass all the custom data in the site command instead of using the "default" option. Check the site command docs.
To automatically add lines when creating the site, this feature is actually in our roadmap and will be available in January when version 1.7.1 is scheduled to be released. Right now exist and it is called "internal API" and just works with the "stack command", it will be extended soon.
In the latest Webinoly update I have extended the Internal-API, check this out:
I'm pretty sure it will work like a charm for what you need.
PayPal · GitHub Sponsors · Bitcoin