You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm setting up a VM for a client which installs and enables this plugin when running in a local development environment, and I would like to find a way to bypass having to have them select "Developing a plugin for a self-hosted install" and opting out of the other recommended add-ons. Is this possible? I can see where the code is written in admin_init but I haven't been able to find a way to suppress or pre-fill the options.
The text was updated successfully, but these errors were encountered:
It's not super clean, but you could do something along the lines of (untested):
global $automattic_developer;
if ( ! get_option( $automattic_developer::OPTION ) ) {
add_action( 'admin_init', function() {
$automattic_developer->save_project_type( 'wporg' );
}, 1 ); // early hook to run before the Developer plugin
}
PRs welcome to make this a bit cleaner to override :)
I'm setting up a VM for a client which installs and enables this plugin when running in a local development environment, and I would like to find a way to bypass having to have them select "Developing a plugin for a self-hosted install" and opting out of the other recommended add-ons. Is this possible? I can see where the code is written in
admin_init
but I haven't been able to find a way to suppress or pre-fill the options.The text was updated successfully, but these errors were encountered: