File ManagerCurrent Directory: wp-content/plugins/wordpress-seo/src/editors/framework/integrationsLinux appserver-0d5e4f1e-php-cc8da225320a42ba9b7d66cba40b1f03 6.6.123+ #1 SMP PREEMPT_DYNAMIC Wed Mar 11 09:04:28 UTC 2026 x86_64Edit File: woocommerce-seo.php <?php // @phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- This namespace should reflect the namespace of the original class. namespace Yoast\WP\SEO\Editors\Framework\Integrations; use WPSEO_Addon_Manager; use Yoast\WP\SEO\Editors\Domain\Integrations\Integration_Data_Provider_Interface; /** * Describes if the Woocommerce SEO addon is enabled. */ class WooCommerce_SEO implements Integration_Data_Provider_Interface { /** * The addon manager. * * @var WPSEO_Addon_Manager */ private $addon_manager; /** * The constructor. * * @param WPSEO_Addon_Manager $addon_manager The addon manager. */ public function __construct( WPSEO_Addon_Manager $addon_manager ) { $this->addon_manager = $addon_manager; } /** * If the plugin is activated. * * @return bool If the plugin is activated. */ public function is_enabled(): bool { return \is_plugin_active( $this->addon_manager->get_plugin_file( WPSEO_Addon_Manager::WOOCOMMERCE_SLUG ) ); } /** * Return this object represented by a key value array. * * @return array<string,bool> Returns the name and if the addon is enabled. */ public function to_array(): array { return [ 'isWooCommerceSeoActive' => $this->is_enabled() ]; } /** * Returns this object represented by a key value structure that is compliant with the script data array. * * @return array<string,bool> Returns the legacy key and if the feature is enabled. */ public function to_legacy_array(): array { return [ 'isWooCommerceSeoActive' => $this->is_enabled() ]; } } Upload File Directory Listing NameTypeSizeActions.. (Parent Directory)Dirjetpack-markdown.phpFile1.92 KB Rename | Delete | Editmultilingual.phpFile2.93 KB Rename | Delete | Editnews-seo.phpFile1.49 KB Rename | Delete | Editsemrush.phpFile2.80 KB Rename | Delete | Editwincher.phpFile2.29 KB Rename | Delete | Editwoocommerce-seo.phpFile1.52 KB Rename | Delete | Editwoocommerce.phpFile1.58 KB Rename | Delete | Edit