| @@ -34,9 +34,9 @@ | ||
| 34 | 34 | * Source plugins that can be imported. |
| 35 | 35 | * |
| 36 | 36 | * @var string[] |
| 37 | 37 | */ |
| 38 | - private const ALLOWED_PLUGINS = [ 'yoast', 'rankmath', 'seopress', 'aioseo' ]; | |
| 38 | + private const ALLOWED_PLUGINS = [ 'yoast', 'rankmath', 'seopress', 'aioseo', 'squirrly' ]; | |
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | 41 | * Data types processed, in pipeline order. |
| 42 | 42 | * |
| @@ -54,9 +54,9 @@ | ||
| 54 | 54 | */ |
| 55 | 55 | public function __construct() { |
| 56 | 56 | $this->id = 'thinkrank/run-seo-import'; |
| 57 | 57 | $this->label = __( 'Run SEO Data Import', 'thinkrank' ); |
| 58 | - $this->description = __( 'Import SEO metadata from another plugin (Yoast, RankMath, SEOPress, or AIOSEO) into ThinkRank. Exports the source to a snapshot then migrates it; existing ThinkRank values are never overwritten and source data is left intact. Returns aggregate export/migration counters.', 'thinkrank' ); | |
| 58 | + $this->description = __( 'Import SEO metadata from another plugin (Yoast, RankMath, SEOPress, or AIOSEO) into ThinkRank. Exports the source to a snapshot then migrates it; existing ThinkRank values are never overwritten and source data is left intact. Returns aggregate export/migration counters. Run preview-seo-import first to see what would change; get-import-status reports on the snapshot afterwards.', 'thinkrank' ); | |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | /** |
| 62 | 62 | * {@inheritDoc} |
| @@ -131,9 +131,9 @@ | ||
| 131 | 131 | |
| 132 | 132 | if ( ! in_array( $plugin, self::ALLOWED_PLUGINS, true ) ) { |
| 133 | 133 | return new \WP_Error( |
| 134 | 134 | 'thinkrank_invalid_import_plugin', |
| 135 | - __( 'A supported source plugin is required (yoast, rankmath, seopress, aioseo).', 'thinkrank' ), | |
| 135 | + __( 'A supported source plugin is required (yoast, rankmath, seopress, aioseo, squirrly).', 'thinkrank' ), | |
| 136 | 136 | [ 'status' => 400 ] |
| 137 | 137 | ); |
| 138 | 138 | } |
| 139 | 139 | |
| @@ -187,8 +187,10 @@ | ||
| 187 | 187 | case 'seopress': |
| 188 | 188 | return new SEOPress_Exporter(); |
| 189 | 189 | case 'aioseo': |
| 190 | 190 | return new AIOSEO_Exporter(); |
| 191 | + case 'squirrly': | |
| 192 | + return new Squirrly_Exporter(); | |
| 191 | 193 | default: |
| 192 | 194 | return null; |
| 193 | 195 | } |
| 194 | 196 | } |