Advertisement
geminilabs

Untitled

May 26th, 2023 (edited)
1,201
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.43 KB | None | 1 0
  1. /**
  2.  * Add LegalService as a schema type in Site Reviews
  3.  * @param array $settings
  4.  * @return array
  5.  */
  6. add_filter('site-reviews/addon/settings', function ($settings) {
  7.     if (isset($settings['settings.schema.integration.types']['options'])) {
  8.         $settings['settings.schema.integration.types']['options']['LegalService'] = 'Legal Service';
  9.         natsort($settings['settings.schema.integration.types']['options']);
  10.     }
  11.     return $settings;
  12. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement