| @@ -40,8 +40,17 @@ | ||
| 40 | 40 | */ |
| 41 | 41 | protected $has_analytics = true; |
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | + * Initialize the module's option group definitions. | |
| 45 | + * | |
| 46 | + * @return array<int, array<string, mixed>> Array of option group arrays. | |
| 47 | + */ | |
| 48 | + protected function init_option_groups() { | |
| 49 | + return require MERCHANT_DIR . 'inc/modules/' . self::MODULE_ID . '/admin/options.php'; | |
| 50 | + } | |
| 51 | + | |
| 52 | + /** | |
| 44 | 53 | * Constructor. |
| 45 | 54 | * |
| 46 | 55 | */ |
| 47 | 56 | public function __construct() { |
| @@ -73,8 +82,19 @@ | ||
| 73 | 82 | ); |
| 74 | 83 | |
| 75 | 84 | // Module data. |
| 76 | 85 | $this->module_data = Merchant_Admin_Modules::$modules_data[ self::MODULE_ID ]; |
| 86 | + | |
| 87 | + // AI prompt examples. | |
| 88 | + $this->ai_examples = array( | |
| 89 | + 'blurb' => esc_html__( 'See what AI can do for your waitlist, from wording the sign-up form and restock emails to reviewing and pruning the list of subscribers.', 'merchant' ), | |
| 90 | + 'prompts' => array( | |
| 91 | + esc_html__( 'Explore the abilities WPVibe gives you access to, then show me everyone currently on the waitlist for the Midnight Runner Sneakers', 'merchant' ), | |
| 92 | + esc_html__( "Check what abilities you have available through WPVibe, then reword the back-in-stock email to open with 'Good news, your {product} is available again'", 'merchant' ), | |
| 93 | + esc_html__( 'Look at your available WPVibe abilities, then turn on automatic restock emails so subscribers are notified the moment an item is back in stock', 'merchant' ), | |
| 94 | + esc_html__( 'See what abilities WPVibe exposes, then clear out everyone who already unsubscribed from the Midnight Runner Sneakers waitlist', 'merchant' ), | |
| 95 | + ), | |
| 96 | + ); | |
| 77 | 97 | |
| 78 | 98 | // Module options path. |
| 79 | 99 | $this->module_options_path = self::MODULE_DIR . '/admin/options.php'; |
| 80 | 100 | |