芝麻web文件管理V1.00
编辑当前文件:/home/elegucvf/public_html/src/editors/framework/integrations/news-seo.php
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::NEWS_SLUG ) ); } /** * 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 [ 'isNewsSeoActive' => $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 [ 'isNewsSeoActive' => $this->is_enabled() ]; } }