Advertisement
geminilabs

[site-reviews-forms] restrict products in dropdown to a product author

Sep 23rd, 2023
1,284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.21 KB | None | 0 0
  1. add_filter('site-reviews-forms/builder/assigned_posts/args', function ($args) {
  2.     if ('product' === $args['post_type'] ?? 0) {
  3.         $args['author'] = 13; // change as needed
  4.     }
  5.     return $args;
  6. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement