Use proper return value for wc_customer_has_capability() docblock

This commit is contained in:
Jeremy Pry 2018-11-20 08:50:46 -05:00
parent 4d93bf60e1
commit 7cc3d098ea
No known key found for this signature in database
GPG Key ID: B8376DDE9C755D2A
1 changed files with 2 additions and 1 deletions

View File

@ -295,7 +295,8 @@ function wc_user_has_role( $user, $role ) {
* @param array $allcaps All capabilities.
* @param array $caps Capabilities.
* @param array $args Arguments.
* @return bool
*
* @return array The filtered array of all capabilities.
*/
function wc_customer_has_capability( $allcaps, $caps, $args ) {
if ( isset( $caps[0] ) ) {