woocommerce_customer_has_capability

The WooCommerce woocommerce customer has capability function.

Description

woocommerce_customer_has_capability( $allcaps, $caps, $args ); 

Parameters (3)

0. $allcaps
The allcaps.
1. $caps
The caps.
2. $args
The args.

Usage

  1. if ( !function_exists( 'woocommerce_customer_has_capability' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-deprecated-functions.php'; 
  3.  
  4. // The allcaps. 
  5. $allcaps = null; 
  6.  
  7. // The caps. 
  8. $caps = null; 
  9.  
  10. // The args. 
  11. $args = null; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = woocommerce_customer_has_capability($allcaps, $caps, $args); 
  15.  

Defined (1)

The function is defined in the following location(s).

/includes/wc-deprecated-functions.php  
  1. function woocommerce_customer_has_capability( $allcaps, $caps, $args ) { 
  2. return wc_customer_has_capability( $allcaps, $caps, $args );