Use proper return value for wc_customer_has_capability() docblock
This commit is contained in:
parent
4d93bf60e1
commit
7cc3d098ea
|
@ -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] ) ) {
|
||||
|
|
Loading…
Reference in New Issue