Yoast\WP\SEO\Actions\Importing

Importing_Action_Interface{}Yoast 1.0

Хуков нет.

Использование

$Importing_Action_Interface = new Importing_Action_Interface();
// use class methods

Методы

  1. public get_plugin()
  2. public get_type()
  3. public is_compatible_with( $plugin = null, $type = null )

Код Importing_Action_Interface{} Yoast 22.4

interface Importing_Action_Interface extends Importing_Indexation_Action_Interface, Limited_Indexing_Action_Interface {

	/**
	 * Returns the name of the plugin we import from.
	 *
	 * @return string The plugin name.
	 */
	public function get_plugin();

	/**
	 * Returns the type of data we import.
	 *
	 * @return string The type of data.
	 */
	public function get_type();

	/**
	 * Whether or not this action is capable of importing given a specific plugin and type.
	 *
	 * @param string|null $plugin The name of the plugin being imported.
	 * @param string|null $type   The component of the plugin being imported.
	 *
	 * @return bool True if the action can import the given plugin's data of the given type.
	 */
	public function is_compatible_with( $plugin = null, $type = null );
}