• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Yoast SEO a2z

Yoast SEO a2z

WordPress SEO a2z

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / Abstract_Aioseo_Importing_Action::is_compatible_with() – Can the current action import the data from plugin $plugin of type $type?

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;
  }
 

 View on GitHub View on Trac

Published: 15th March 2022 | Last updated: 15th March 2022

Primary Sidebar

Information

Function name: Abstract_Aioseo_Importing_Action::is_compatible_with
Class ref: Abstract_Aioseo_Importing_Action
Plugin ref: Yoast SEO
Version: 20.2.1
Sourcefile: src/actions/importing/abstract-aioseo-importing-action.php
File ref: src/actions/importing/abstract-aioseo-importing-action.php
Deprecated?: No
API Letters: A,I

Footer

Yoast SEO a2z
Yoast SEO a2z
WordPress SEO a2z
WordPress 6.1.1
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  wordpress-seo.wp-a2z.org
© Copyright Yoast SEO a2z 2017-2023. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites