class-schema-ids.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?php
  2. /**
  3. * WPSEO plugin file.
  4. *
  5. * @package WPSEO\Frontend\Schema
  6. */
  7. /**
  8. * Constants used for @id variables.
  9. *
  10. * @since 10.2
  11. */
  12. class WPSEO_Schema_IDs {
  13. /**
  14. * Hash used for the Author `@id`.
  15. */
  16. const AUTHOR_HASH = '#author';
  17. /**
  18. * Hash used for the Author Logo's `@id`.
  19. */
  20. const AUTHOR_LOGO_HASH = '#authorlogo';
  21. /**
  22. * Hash used for the Breadcrumb's `@id`.
  23. */
  24. const BREADCRUMB_HASH = '#breadcrumb';
  25. /**
  26. * Hash used for the Person `@id`.
  27. */
  28. const PERSON_HASH = '#/schema/person/';
  29. /**
  30. * Hash used for the Article `@id`.
  31. */
  32. const ARTICLE_HASH = '#article';
  33. /**
  34. * Hash used for the Organization `@id`.
  35. */
  36. const ORGANIZATION_HASH = '#organization';
  37. /**
  38. * Hash used for the Organization `@id`.
  39. */
  40. const ORGANIZATION_LOGO_HASH = '#logo';
  41. /**
  42. * Hash used for the logo `@id`.
  43. */
  44. const PERSON_LOGO_HASH = '#personlogo';
  45. /**
  46. * Hash used for an Article's primary image `@id`.
  47. */
  48. const PRIMARY_IMAGE_HASH = '#primaryimage';
  49. /**
  50. * Hash used for the WebPage's `@id`.
  51. */
  52. const WEBPAGE_HASH = '#webpage';
  53. /**
  54. * Hash used for the Website's `@id`.
  55. */
  56. const WEBSITE_HASH = '#website';
  57. }