Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
polymastigina
/
wp-content
/
plugins
/
yoast-test-helper
/
src
/
wordpress-plugins
:
local-seo.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace Yoast\WP\Test_Helper\WordPress_Plugins; /** * Class to represent Local SEO. */ class Local_SEO implements WordPress_Plugin { /** * Retrieves the plugin identifier. * * @return string The plugin identifier. */ public function get_identifier() { return 'wpseo-local'; } /** * Retrieves the plugin name. * * @return string The name of the plugin. */ public function get_name() { return 'Yoast SEO: Local'; } /** * Retrieves the version option name. * * @return string The name that holds the version. */ public function get_version_option_name() { return 'wpseo_local'; } /** * Retrieves the version key. * * @return string The version key. */ public function get_version_key() { return 'local_version'; } /** * Retrieves the options. * * @return array The options. */ public function get_options() { return [ $this->get_version_option_name() ]; } /** * Resets a feature. * * @param string $feature Feature to reset. * * @return bool True on success. */ public function reset_feature( $feature ) { return false; } /** * Retrieves the list of features. * * @return string[] List of features. */ public function get_features() { return []; } /** * Retrieves the active version of the plugin. * * @return string The current version of the plugin. */ public function get_version_constant() { return \defined( 'WPSEO_LOCAL_VERSION' ) ? \WPSEO_LOCAL_VERSION : \__( 'not active', 'yoast-test-helper' ); } }