/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. * Class with functionality to import & clean Ultimate SEO post metadata.
  9. */
  10. class WPSEO_Import_Greg_SEO extends WPSEO_Plugin_Importer {
  11. /**
  12. * The plugin name.
  13. *
  14. * @var string
  15. */
  16. protected $plugin_name = "Greg's High Performance SEO";
  17. /**
  18. * Meta key, used in SQL LIKE clause for delete query.
  19. *
  20. * @var string
  21. */
  22. protected $meta_key = '_ghpseo_%';
  23. /**
  24. * Array of meta keys to detect and import.
  25. *
  26. * @var array
  27. */
  28. protected $clone_keys = array(
  29. array(
  30. 'old_key' => '_ghpseo_alternative_description',
  31. 'new_key' => 'metadesc',
  32. ),
  33. array(
  34. 'old_key' => '_ghpseo_secondary_title',
  35. 'new_key' => 'title',
  36. ),
  37. );
  38. }