Admin Capability

wpscont/admin/capability

Description:
Returns the currently given admin capability. It will be useful if you want to create custom permissions.

Parameter Type Description
$this->admin_cap string The permission capability for the whoe plugin
$target string The context where the capability gets called from.
        /**
         * Customize the globally uses capability for this plugin
         *
         * This filter is called every time a capability is needed.
         */
        return apply_filters('wpscont/admin/capability', $this->admin_cap, $target);

Source:
wp-content/plugins/wp-shortcode-control/core/includes/classes/settings.php

Was this article helpful?

Related Articles