芝麻web文件管理V1.00
编辑当前文件:/home/elegucvf/public_html/src/editors/framework/integrations/woocommerce.php
woocommerce_conditional = $woocommerce_conditional; } /** * If the plugin is activated. * * @return bool If the plugin is activated. */ public function is_enabled(): bool { return $this->woocommerce_conditional->is_met(); } /** * Return this object represented by a key value array. * * @return array
Returns the name and if the feature is enabled. */ public function to_array(): array { return [ 'isWooCommerceActive' => $this->is_enabled() ]; } /** * Returns this object represented by a key value structure that is compliant with the script data array. * * @return array
Returns the legacy key and if the feature is enabled. */ public function to_legacy_array(): array { return [ 'isWooCommerceActive' => $this->is_enabled() ]; } }