woocommerce_api_edit_product_category_data

woocommerce_api_edit_product_category_data

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

See hook in core

Displaying hooks found in version: woocommerce.8.9.3

apply_filters('woocommerce_api_edit_product_category_data') is found 1 times:

  • /includes/legacy/api/v3/class-wc-api-products.php line 795
    			if ( ! current_user_can( 'manage_product_terms' ) ) {
    				throw new WC_API_Exception( 'woocommerce_api_user_cannot_edit_product_category', __( 'You do not have permission to edit product categories', 'woocommerce' ), 401 );
    			}
    
    			$data     = apply_filters( 'woocommerce_api_edit_product_category_data', $data, $this );
    			$category = $this->get_product_category( $id );
    
    			if ( is_wp_error( $category ) ) {
    				return $category;
    			}