nf_add_permissions_filters

Add filters so that users given the ability to see the "All Forms" table and the add new form page can add new fields and delete forms.

Description

nf_add_permissions_filters( $cap ); 

Parameters (1)

0. $cap
The cap.

Usage

  1. if ( !function_exists( 'nf_add_permissions_filters' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/includes/functions.php'; 
  3.  
  4. // The cap. 
  5. $cap = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = nf_add_permissions_filters($cap); 
  9.  

Defined (1)

The function is defined in the following location(s).

/deprecated/includes/functions.php  
  1. function nf_add_permissions_filters( $cap ) { 
  2. return apply_filters( 'ninja_forms_admin_all_forms_capabilities', $cap );