wpgenie

workaround for messed up forms for Dokan product addon module and our integrations

Jul 15th, 2021 (edited)
2,321
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.51 KB | None | 0 0
  1. /* visit us - https://wpgenie.org */
  2.  
  3. /*
  4.  
  5. workaround for messed up forms for Dokan product addon module and our integrations
  6.  
  7. in /wp-content/plugins/dokan-pro/modules/product-addon/module.php add following: */
  8.  
  9. // this allready exist
  10. if ( isset( $wp->query_vars['auction'] ) ) {
  11.             $this->enqueue_scripts();
  12. }
  13.  
  14. // to add:
  15. if ( isset( $wp->query_vars['lottery'] ) ) {
  16.             $this->enqueue_scripts();
  17. }
  18. if ( isset( $wp->query_vars['groupbuy'] ) ) {
  19.             $this->enqueue_scripts();
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment