Yoast\WP\SEO\Actions\Importing
Abstract_Aioseo_Importing_Action::is_compatible_with()
Can the current action import the data from plugin $plugin of type $type?
Метод класса: Abstract_Aioseo_Importing_Action{}
Хуков нет.
Возвращает
true|false
. True if this action can handle the combination of Plugin and Type.
Использование
$Abstract_Aioseo_Importing_Action = new Abstract_Aioseo_Importing_Action(); $Abstract_Aioseo_Importing_Action->is_compatible_with( $plugin, $type );
- $plugin(строка|null)
- The plugin to import from.
По умолчанию: null - $type(строка|null)
- The type of data to import.
По умолчанию: null
Код Abstract_Aioseo_Importing_Action::is_compatible_with() Abstract Aioseo Importing Action::is compatible with Yoast 24.3
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; }