| @@ -52,8 +52,10 @@ | ||
| 52 | 52 | </div> |
| 53 | 53 | |
| 54 | 54 | </div> |
| 55 | 55 | |
| 56 | + <?php require MERCHANT_DIR . 'admin/views/wpvibe-banner.php'; ?> | |
| 57 | + | |
| 56 | 58 | <div class="merchant-module-page-content mrc-w-100"> |
| 57 | 59 | |
| 58 | 60 | <?php |
| 59 | 61 | |
| @@ -62,8 +64,22 @@ | ||
| 62 | 64 | * |
| 63 | 65 | * @since 1.0 |
| 64 | 66 | */ |
| 65 | 67 | do_action( 'merchant_admin_settings_before_options' ); |
| 68 | + | |
| 69 | + // Save the WPVibe MCP toggle only when WPVibe is active to avoid overwriting the stored value with the unchecked-checkbox default. | |
| 70 | + if ( is_plugin_active( 'vibe-ai/vibe-ai.php' ) ) { | |
| 71 | + Merchant_Admin_Options::save_options( array( | |
| 72 | + 'module' => 'global-settings', | |
| 73 | + 'fields' => array( | |
| 74 | + array( | |
| 75 | + 'id' => 'wpvibe_mcp_write_access', | |
| 76 | + 'type' => 'switcher', | |
| 77 | + 'default' => false, | |
| 78 | + ), | |
| 79 | + ), | |
| 80 | + ) ); | |
| 81 | + } | |
| 66 | 82 | |
| 67 | 83 | Merchant_Admin_Options::create( array( |
| 68 | 84 | 'module' => 'global-settings', |
| 69 | 85 | 'title' => esc_html__( 'Merchant Analytics', 'merchant' ), |