woocommerce_product_reviews_page_capability

woocommerce_product_reviews_page_capability

Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.6.9.4

apply_filters('woocommerce_product_reviews_page_capability') is found 1 times:

  • /src/Internal/Admin/ProductReviews/Reviews.php line 114
    		 *
    		 * @param string $capability The capability (defaults to `moderate_comments` for viewing and `edit_products` for editing).
    		 * @param string $context    The context for which the capability is needed.
    		 */
    		return (string) apply_filters( 'woocommerce_product_reviews_page_capability', 'view' === $context ? 'moderate_comments' : 'edit_products', $context );
    	}
    
    	/**
    	 * Registers the Product Reviews submenu page.
    	 *
    	 * @return void