From e242ed1fa9fcbce4970c962035ab16e928194eab Mon Sep 17 00:00:00 2001 From: wpalani Date: Sun, 10 Sep 2023 17:16:50 -0700 Subject: [PATCH] Enable 'Yoast AI' by default --- bootstrap.php | 1 + inc/YoastAI.php | 65 ++++++++++++++++++++++++++++++++++++++++++ inc/upgrades/3.1.1.php | 14 +++++++++ 3 files changed, 80 insertions(+) create mode 100644 inc/YoastAI.php create mode 100644 inc/upgrades/3.1.1.php diff --git a/bootstrap.php b/bootstrap.php index 330f484bc..400d36628 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -204,6 +204,7 @@ function () { require BLUEHOST_PLUGIN_DIR . '/inc/RestApi/rest-api.php'; require BLUEHOST_PLUGIN_DIR . '/inc/settings.php'; require BLUEHOST_PLUGIN_DIR . '/inc/updates.php'; +require BLUEHOST_PLUGIN_DIR . '/inc/YoastAI.php'; /* WordPress Admin Page & Features */ if ( is_admin() ) { diff --git a/inc/YoastAI.php b/inc/YoastAI.php new file mode 100644 index 000000000..f16dc2541 --- /dev/null +++ b/inc/YoastAI.php @@ -0,0 +1,65 @@ +helpers->options->get( 'enable_ai_generator', null ) !== null ) { + yoastseo()->helpers->options->set( 'enable_ai_generator', true ); + } +}