Keep up to date with Gravity PDF

  • This field is for validation purposes and should be left unchanged.
Gravity PDF v4 will receive bug fixes and security updates until October 4, 2019, however it's recommended you upgrade to v5 as soon as practical.
Jump To Section

Description #description

This filter can be used to add new capabilities to the user restrictions global setting. By default all Gravity Form capabilities and all active WordPress capabilities are included.

Parameters #parameters

$capabilities | array
The multidimensional associative array that holds the list of capabilities.

Usage #usage

This snippet adds a new group to our User Restrictions global setting which includes three capabilities:

add_action( 'gfpdf_capabilities', function( $capabilities ) {

    /* Ensure your capabilities are correctly registered with WordPress */
    $capabilities[ __( '3rd Party Plugin', 'prefix-text-domain' ) ] = array(
        'capability_1',
        'capability_2',
        'capability_3',
    );

    return $capabilities;
} );

Source Code #source-code

This filter is located in the Helper_Abstract_Options::get_capabilities() method of /src/helper/abstract/Helper_Abstract_Options.php.

Signup for the latest Gravity PDF news, tips and updates

  • This field is for validation purposes and should be left unchanged.
Scroll To Top

Choose your currency:

Close
Converted prices are for reference only - all orders are charged in $ Australian Dollars ($) AUD.
  • AUDAustralian Dollars ($)
  • USDUS Dollars ($)
  • CADCanadian Dollars ($)
  • EUREuros (€)
  • GBPPound Sterling (£)
  • NZDNew Zealand Dollar ($)
  • JPYJapanese Yen (¥)