Skip to content

Commit e320628

Browse files
authored
gpsa-auto-allow-administrator-access.php: Added new snippet.
1 parent 58314e5 commit e320628

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
/**
3+
* Gravity Perks // Submit to Access // Auto-allow Access for Administrators
4+
* https://gravitywiz.com/documentation/gravity-forms-submit-to-access/
5+
*/
6+
add_filter( 'gpsa_has_access', function( $has_access ) {
7+
return current_user_can( 'administrator' );
8+
} );

0 commit comments

Comments
 (0)