Advertisement
geminilabs

form wizard template

Aug 30th, 2022
838
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/render/view', function ($view, $data) {
  2.     if ('templates/reviews-form' === $view) {
  3.         $formId = (int) glsr_get($data, 'args.form');
  4.         if (13 === $formId) {
  5.             // Use the custom form template located in /{your-theme}/site-reviews/reviews-form-wizard.php
  6.             return 'templates/reviews-form-wizard';
  7.         }
  8.     }
  9.     return $file;
  10. }, 10, 2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement