PageRenderTime 19ms CodeModel.GetById 14ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/wp-content/plugins/wordpress-seo/admin/import/plugins/class-import-greg-high-performance-seo.php

https://bitbucket.org/carloskikea/helpet
PHP | 42 lines | 28 code | 1 blank | 13 comment | 0 complexity | e5644fb66a2fa72da4b6b598bd420ebf MD5 | raw file
 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 */
11class WPSEO_Import_Greg_SEO extends WPSEO_Plugin_Importer {
12	/**
13	 * The plugin name.
14	 *
15	 * @var string
16	 */
17	protected $plugin_name = "Greg's High Performance SEO";
18
19	/**
20	 * Meta key, used in SQL LIKE clause for delete query.
21	 *
22	 * @var string
23	 */
24	protected $meta_key = '_ghpseo_%';
25
26	/**
27	 * Array of meta keys to detect and import.
28	 *
29	 * @var array
30	 */
31	protected $clone_keys = array(
32		array(
33			'old_key' => '_ghpseo_alternative_description',
34			'new_key' => 'metadesc',
35		),
36		array(
37			'old_key' => '_ghpseo_secondary_title',
38			'new_key' => 'title',
39		),
40	);
41
42}