Advertisement
geminilabs

Untitled

Feb 2nd, 2023
916
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.40 KB | None | 0 0
  1. add_filter('site-reviews/field/select', function ($field) {
  2.     // 1. enter your custom select field name here...
  3.     if ('your_custom_field_name' === $field['path']) {
  4.         return $field;
  5.     }
  6.     // 2. set your custom select option values here...
  7.     $field['options'] = [
  8.         'val_1' => 'Value 1',
  9.         'val_2' => 'Value 2',
  10.         'val_3' => 'Value 3',
  11.     ];
  12.     return $field;
  13. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement