Class Quform_Permissions
Copyright:
Copyright (c) 2009-2022 ThemeCatcher (https://www.themecatcher.net)
Located at Quform/Permissions.php
Methods summary
public
array
|
#
getAllCapabilities( )
Get the list of all plugin capabilities
Get the list of all plugin capabilities
Returns
array
|
public
array
|
#
getAllCapabilitiesWithDescriptions( )
Get the list of all plugin capabilities (with descriptions)
Get the list of all plugin capabilities (with descriptions)
Due to a conflict with WPML, this needs to be separate from getAllCapabilities.
Returns
array
|
public
|
#
activate( )
On activation give the 'administrator' role the capabilities to manage forms
On activation give the 'administrator' role the capabilities to manage forms
|
public
|
#
update( array $permissions )
Update the permissions based on the given array
Update the permissions based on the given array
Parameters
|
public
|
#
uninstall( )
On plugin uninstall, remove all capabilities from all roles
On plugin uninstall, remove all capabilities from all roles
|
public
array
|
#
fullAccessCheck( array $allcaps, array $caps, array $args )
If the user has the quform_full_access capability then give them all plugin capabilities
If the user has the quform_full_access capability then give them all plugin capabilities
Parameters
- $allcaps
- All of the user's capabilities
- $caps
- The actual capabilities for a meta capability
- $args
- The arguments to WP_User::has_cap, $args[0] is the capability name
Returns
array
|