The members members get cap function.
Published Date - July 31, 2023
Returns a capability object.
members_get_cap( $name );
$name
The following example is for adding a hook callback.
if ( !function_exists( 'members_get_cap' ) ) {
require_once ABSPATH . PLUGINDIR . 'membersmembers/inc/functions-capabilities.php';
}
// The input(s).
$name = null;
// NOTICE! Understand what this does before running.
$result = members_get_cap( $name );
The function is defined in the following location(s).
members/inc/functions-capabilities.php
function members_get_cap( $name ) {
return members_capability_registry()->get( $name );
}