Thanks for your inquiry. ~ We appreciate your patience :-)
Capabilities are listed in the Dashboard, under each User account. Clicking [edit] for a specific User will bring up a list of their settings/configuration; and that will include a list of Custom Capabilities integrated with s2Member®.
If you’d like to get these via PHP, or display them on-site somewhere, you will need a PHP snippet.
<?php
$user = wp_get_current_user();
foreach(array_keys($user->allcaps) as $cap)
{
echo $cap.'<br />';
}
?>
If you only want Custom Capabilities integrated with s2Member, you would do something like this.
<?php
$user = wp_get_current_user();
foreach(array_keys($user->allcaps) as $cap)
{
if(strpos($cap, 'access_s2member_ccap_') === 0)
echo $cap.'<br />';
}
?>
See also: Knowledge Base » ezPHP Plugin for WordPress®