gplp_enable_globally
Description
Enable preview features for forms outside of core/live preview.
Usage
add_filter( 'gplp_enable_globally', '__return_true' );
Parameters
is_global bool
Return true to enable globally. Defaults to false.
Examples
Enable Globally for Admins.
<?php
/**
* Gravity Perks // Live Preview // Enable Globally For Admins
* https://gravitywiz.com/documentation/gravity-forms-live-preview/
*/
add_filter( 'gplp_enable_globally', function( $is_global ) {
return current_user_can( 'administrator' );
} );
Since
This filter is available since Gravity Forms Live Preview 1.4.1.