class-cornerstone.php 1019 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. /**
  3. * WPSEO plugin file.
  4. *
  5. * @package WPSEO\Admin
  6. */
  7. /**
  8. * Represents the yoast cornerstone content.
  9. *
  10. * @deprecated 8.4
  11. */
  12. class WPSEO_Cornerstone {
  13. /**
  14. * Holds the cornerstone meta name.
  15. *
  16. * @var string
  17. */
  18. const META_NAME = 'is_cornerstone';
  19. /**
  20. * Holds the cornerstone field name.
  21. *
  22. * @var string
  23. */
  24. const FIELD_NAME = 'yoast_wpseo_is_cornerstone';
  25. /**
  26. * WPSEO_Cornerstone constructor.
  27. *
  28. * @deprecated 8.4
  29. */
  30. public function __construct() {
  31. _deprecated_function( __METHOD__, '8.4' );
  32. }
  33. /**
  34. * Registers the hooks.
  35. *
  36. * @deprecated 8.4
  37. *
  38. * @return void
  39. */
  40. public function register_hooks() {
  41. _deprecated_function( 'WPSEO_Cornerstone::register_hooks', '8.4' );
  42. }
  43. /**
  44. * Saves the meta value to the database.
  45. *
  46. * @deprecated 8.4
  47. *
  48. * @param int $post_id The post id to save the meta value for.
  49. *
  50. * @return void
  51. */
  52. public function save_meta_value( $post_id ) {
  53. _deprecated_function( 'WPSEO_Cornerstone::save_meta_value', '8.4' );
  54. }
  55. }