Skip to content

Commit f366721

Browse files
authored
Enable Globally For Admins
1 parent 0984202 commit f366721

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 // Live Preview // Enable Globally For Admins
4+
* https://gravitywiz.com/documentation/gravity-forms-live-preview/
5+
*/
6+
add_filter( 'gplp_enable_globally', function( $is_global ) {
7+
return current_user_can( 'administrator' );
8+
} );

0 commit comments

Comments
 (0)