Filename: gpep-prioritize-token.php
gpep-prioritize-token.php
<?php /** * Gravity Perks // Easy Passthrough // Prioritize Token over User Passthrough * https://gravitywiz.com/documentation/gravity-forms-easy-passthrough/ */ add_filter( 'gpep_active_feeds', function( $feeds ) { if ( ! is_user_logged_in() || ! rgget( 'ep_token' ) ) { return $feeds; } foreach ( $feeds as &$feed ) { $feed['meta']['userPassthrough'] = false; } return $feeds; } );
Your email address will not be published. Required fields are marked *
Comment *
Notify me of followup comments via e-mail
Name *
Email *
Website
Save my name, email, and website in this browser for the next time I comment.
By commenting, I understand that I may receive emails related to Gravity Wiz and can unsubscribe at any time.
Δ