You appear to be a bot. Output may be restricted
Description
Can the current action import the data from plugin $plugin of type $type?
Usage
$bool = Abstract_Aioseo_Importing_Action::is_compatible_with( $plugin, $type );
Parameters
- $plugin
- ( string|null ) optional – The plugin to import from.
- $type
- ( string|null ) optional – The type of data to import.
Returns
bool True if this action can handle the combination of Plugin and Type.
Source
File name: wordpress-seo/src/actions/importing/abstract-aioseo-importing-action.php
Lines:
1 to 19 of 19
public function is_compatible_with( $plugin = null, $type = null ) { if ( empty( $plugin ) && empty( $type ) ) { return true; } if ( $plugin === $this->get_plugin() && empty( $type ) ) { return true; } if ( empty( $plugin ) && $type === $this->get_type() ) { return true; } if ( $plugin === $this->get_plugin() && $type === $this->get_type() ) { return true; } return false; }