Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions gp-inventory/gpi-show-inventory-only-for-logged-in-users.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php
/**
* Gravity Perks // Inventory // Show Inventory Only For Logged In users
* https://gravitywiz.com/documentation/gravity-forms-inventory/
*

Check failure on line 5 in gp-inventory/gpi-show-inventory-only-for-logged-in-users.php

View workflow job for this annotation

GitHub Actions / PHPCS (Files Changed)

Whitespace found at end of line
* Instruction Video: https://www.loom.com/share/2d9843302a54456987ed2c66a83612ba
*
* By default the inventory available is shown for everyone, if enabled.
* Use this filter to show the inventory available only for logged in users.
*/
add_filter( 'gpi_inventory_available_message', function( $message ) {
if ( is_user_logged_in() ) {
return $message;
}
return '';
} );
Loading