[ 'type' => 'toggle', 'label' => __('Enable Guest Wishlists', 'woonoow'), 'description' => __('Allow non-logged-in users to create wishlists (stored in browser)', 'woonoow'), 'default' => true, ], 'wishlist_page' => [ 'type' => 'select', 'label' => __('Wishlist Page', 'woonoow'), 'description' => __('Page to display wishlist items', 'woonoow'), 'placeholder' => __('-- Select Page --', 'woonoow'), 'options' => self::get_pages_options(), ], 'show_in_header' => [ 'type' => 'toggle', 'label' => __('Show Wishlist Icon in Header', 'woonoow'), 'description' => __('Display wishlist icon with item count in the header', 'woonoow'), 'default' => true, ], 'enable_sharing' => [ 'type' => 'toggle', 'label' => __('Enable Wishlist Sharing', 'woonoow'), 'description' => __('Allow users to share their wishlists via link', 'woonoow'), 'default' => true, ], 'enable_email_notifications' => [ 'type' => 'toggle', 'label' => __('Back in Stock Notifications', 'woonoow'), 'description' => __('Email users when wishlist items are back in stock', 'woonoow'), 'default' => false, ], 'max_items_per_wishlist' => [ 'type' => 'number', 'label' => __('Maximum Items Per Wishlist', 'woonoow'), 'description' => __('Limit the number of items in a wishlist (0 = unlimited)', 'woonoow'), 'default' => 0, 'min' => 0, 'max' => 1000, ], 'enable_multiple_wishlists' => [ 'type' => 'toggle', 'label' => __('Enable Multiple Wishlists', 'woonoow'), 'description' => __('Allow users to create multiple named wishlists', 'woonoow'), 'default' => false, ], 'show_add_to_cart_button' => [ 'type' => 'toggle', 'label' => __('Show "Add to Cart" on Wishlist Page', 'woonoow'), 'description' => __('Display add to cart button for each wishlist item', 'woonoow'), 'default' => true, ], ]; return $schemas; } /** * Get WordPress pages as select options */ private static function get_pages_options() { $pages = get_pages(); $options = []; foreach ($pages as $page) { $options[$page->ID] = $page->post_title; } return $options; } }