This is working.
The code:
add_filter( 'dokan_ensure_vendor_coupon', '__return_false' );
does work.
The reason why it didn’t work is because the ‘apostrophes’ that were used were a different font/character.
I just copied the code as is from a WordPress support thread which was in the wrong font/character or something, which is why it didn’t work.
Here’s the difference:
add_filter(‘dokan_ensure_vendor_coupon’, ‘__return_false’ );
vs
add_filter('dokan_ensure_vendor_coupon', '__return_false' );
The second line will work. The first won’t.
-
This reply was modified 3 years, 1 month ago by Ihsan.
-
This reply was modified 3 years, 1 month ago by Ihsan.