Is user able to

wpscont/helpers/user_is_able_to

Description:
This is one of the most powerful hooks in our plugin. It offers you the possibility to translate strings based on the given settings, as well as on the context tags. It will be super useful if you want to translate just specific strings, none, all, or just your own created ones.

Parameter Type Description
$is_able bool True if the user is able to
$caps array An array of the given caps to check against.
        /**
         * Filter for custom handling if a user is able to do something
         */
        return apply_filters('wpscont/helpers/user_is_able_to', $is_able, $caps);

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

Was this article helpful?

Related Articles