woocommerce_duplicate_product_capability

woocommerce_duplicate_product_capability

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_duplicate_product_capability') is found 2 times:

  • /includes/admin/class-wc-admin-duplicate-product.php line 41
    	 */
    	public function dupe_link( $actions, $post ) {
    		global $the_product;
    
    		if ( ! current_user_can( apply_filters( 'woocommerce_duplicate_product_capability', 'manage_woocommerce' ) ) ) {
    			return $actions;
    		}
    
    		if ( 'product' !== $post->post_type ) {
    			return $actions;
    		}
    
  • /includes/admin/class-wc-admin-duplicate-product.php line 76
    	 */
    	public function dupe_button() {
    		global $post;
    
    		if ( ! current_user_can( apply_filters( 'woocommerce_duplicate_product_capability', 'manage_woocommerce' ) ) ) {
    			return;
    		}
    
    		if ( ! is_object( $post ) ) {
    			return;
    		}