gpsa_storage_mode

  1. Description
  2. Usage
  3. Parameters
  4. Since
  5. Examples

Description

Allows filtering the storage mode for content access.

Access can either be tracked in cookies or the current User’s Profile (the usermeta table). Note that if the current user is not logged in, access will be tracked via a cookie even if set to use User Profile.

Usage

add_filter( 'gpsa_storage_mode', 'my_custom_function' );

Parameters

  • storage_mode type

    The default storage mode. Possible values are ‘cookie’ or ‘user_profile’.

Since

This filter is available since Gravity Forms Submit to Access 1.0.0.

Examples

add_filter( 'gpsa_storage_mode', function( $storage_mode ) {
    return 'user_profile';
} );