PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.6.5
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.6.5
1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.4 1.5.5 1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.28 1.3.27 1.3.26 1.3.25 1.3.23 1.3.22 1.3.21 1.3.20 1.3.19 trunk All 48 releases
← All changes | app/CPT/Pages.php +7 -0 1.3.26 → 1.6.5 View file →
@@ -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]'