Allow editors to create and manage Gravity Forms coupons
By default, only administrators have the capability to create and manage coupons in Gravity Forms.
If you’d like to grant your editors this ability without giving them full administrative access, you can add a custom code snippet to either a must-use plugin (mu-plugin) or your theme’s `functions.php` file.
The following snippet adjusts user capabilities so that editors can create, edit, and manage Gravity Forms coupons, streamlining your workflow and ensuring greater flexibility in managing promotions and discounts:
<?php /** * Allow editors to create and manage Gravity Forms coupons */ add_action( 'init', 'wpster_gf_coupons_add_caps_to_editors' ); function wpster_gf_coupons_add_caps_to_editors() { $role = get_role( 'editor' ); if ( $role ) { $role->add_cap( 'gravityforms_coupons' ); } } ?>