wpseo-functions-deprecated.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. /**
  3. * WPSEO plugin file.
  4. *
  5. * @package WPSEO\Deprecated
  6. */
  7. /**
  8. * Remove the bulk edit capability from the proper default roles.
  9. *
  10. * Contributor is still removed for legacy reasons.
  11. *
  12. * @deprecated 5.5
  13. */
  14. function wpseo_remove_capabilities() {
  15. _deprecated_function( __FUNCTION__, 'WPSEO 5.5.0', 'WPSEO_Capability_Manager_Factory::get()->remove()' );
  16. WPSEO_Capability_Manager_Factory::get()->remove();
  17. }
  18. /**
  19. * Add the bulk edit capability to the proper default roles.
  20. *
  21. * @deprecated 5.5.0
  22. */
  23. function wpseo_add_capabilities() {
  24. _deprecated_function( __FUNCTION__, 'WPSEO 5.5.0', 'WPSEO_Capability_Manager_Factory::get()->add()' );
  25. WPSEO_Capability_Manager_Factory::get()->add();
  26. }
  27. /**
  28. * Adds help tabs.
  29. *
  30. * @deprecated 7.6.0
  31. *
  32. * @param array $tabs Current help center tabs.
  33. *
  34. * @return array List containing all the additional tabs.
  35. */
  36. function yoast_add_meta_options_help_center_tabs( $tabs ) {
  37. _deprecated_function( __FUNCTION__, 'WPSEO 7.6.0', 'WPSEO_Help_Center_Template_Variables_Tab::add_meta_options_help_center_tabs' );
  38. return $tabs;
  39. }
  40. /**
  41. * Adds template variables to the help center.
  42. *
  43. * @deprecated 7.6.0
  44. *
  45. * @return string The content for the template variables tab.
  46. */
  47. function wpseo_add_template_variables_helpcenter() {
  48. _deprecated_function( __FUNCTION__, 'WPSEO 7.6.0' );
  49. return '';
  50. }