PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / trunk
Yoast SEO – Advanced SEO with real-time guidance and built-in AI vtrunk
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
wordpress-seo / admin / import / plugins / class-import-ultimate-seo.php

class-import-ultimate-seo.php in Yoast SEO – Advanced SEO with real-time guidance and built-in AI trunk, at admin/import/plugins/class-import-ultimate-seo.php

65 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * File with the class to handle data from Ultimate SEO.
4 *
5 * @package WPSEO\Admin\Import\Plugins
6 */
7
8 /**
9 * Class with functionality to import & clean Ultimate SEO post metadata.
10 */
11 class WPSEO_Import_Ultimate_SEO extends WPSEO_Plugin_Importer {
12
13 /**
14 * The plugin name.
15 *
16 * @var string
17 */
18 protected $plugin_name = 'Ultimate SEO';
19
20 /**
21 * Meta key, used in SQL LIKE clause for delete query.
22 *
23 * @var string
24 */
25 protected $meta_key = '_su_%';
26
27 /**
28 * Array of meta keys to detect and import.
29 *
30 * @var array
31 */
32 protected $clone_keys = [
33 [
34 'old_key' => '_su_description',
35 'new_key' => 'metadesc',
36 ],
37 [
38 'old_key' => '_su_title',
39 'new_key' => 'title',
40 ],
41 [
42 'old_key' => '_su_og_title',
43 'new_key' => 'opengraph-title',
44 ],
45 [
46 'old_key' => '_su_og_description',
47 'new_key' => 'opengraph-description',
48 ],
49 [
50 'old_key' => '_su_og_image',
51 'new_key' => 'opengraph-image',
52 ],
53 [
54 'old_key' => '_su_meta_robots_noindex',
55 'new_key' => 'meta-robots-noindex',
56 'convert' => [ 'on' => 1 ],
57 ],
58 [
59 'old_key' => '_su_meta_robots_nofollow',
60 'new_key' => 'meta-robots-nofollow',
61 'convert' => [ 'on' => 1 ],
62 ],
63 ];
64 }
65