| @@ -13,8 +13,15 @@ | ||
| 13 | 13 | protected static array $cachedPages = []; |
| 14 | 14 | |
| 15 | 15 | public function pages(): array |
| 16 | 16 | { |
| 17 | + // Lets addons register their own generatable pages ('key' => title + content), | |
| 18 | + // so the Pages Setup "+" create button and onboarding can build them. | |
| 19 | + return apply_filters('fluent_cart/generatable_pages', $this->corePages()); | |
| 20 | + } | |
| 21 | + | |
| 22 | + public function corePages(): array | |
| 23 | + { | |
| 17 | 24 | return [ |
| 18 | 25 | 'checkout' => [ |
| 19 | 26 | 'title' => 'Checkout', |
| 20 | 27 | 'content' => '[fluent_cart_checkout]' |