🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-08-07 14:06:58 | PHP 8.2.32
📂
/ (Root)
/
home
/
eliteewa
/
public_html
/
wp-content
/
themes
/
blocksy
/
inc
/
components
/
woocommerce
/
common
📍 /home/eliteewa/public_html/wp-content/themes/blocksy/inc/components/woocommerce/common
🔄 Refresh
✏️
Editing: default-pages.php
Writable
<?php namespace Blocksy; // This file is loaded even if WooCommerce is not active. // It should never contain any calls to functions from WooCommerce, unles it // is inside the woocommerce_create_pages filter. class WooDefaultPages { use WordPressActionsManager; private $filters = [ [ 'action' => 'woocommerce_create_pages', 'priority' => 100 ] ]; public function __construct() { $this->attach_hooks(); } public function woocommerce_create_pages($pages) { if (isset($pages['cart']) && isset($pages['cart']['content'])) { $cart_shortcode = 'woocommerce_cart'; $pages['cart']['content'] = '<!-- wp:shortcode -->[' . $cart_shortcode . ']<!-- /wp:shortcode -->'; } if (isset($pages['checkout']) && isset($pages['checkout']['content'])) { $checkout_shortcode = 'woocommerce_checkout'; $pages['checkout']['content'] = '<!-- wp:shortcode -->[' . $checkout_shortcode . ']<!-- /wp:shortcode -->'; } return $pages; } }
💾 Save Changes
❌ Cancel