woocommerce_api_edit_product_tag_data

woocommerce_api_edit_product_tag_data

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

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_api_edit_product_tag_data') is found 1 times:

  • /includes/legacy/api/v3/class-wc-api-products.php line 1015
    			if ( ! current_user_can( 'manage_product_terms' ) ) {
    				throw new WC_API_Exception( 'woocommerce_api_user_cannot_edit_product_tag', __( 'You do not have permission to edit product tags', 'woocommerce' ), 401 );
    			}
    
    			$data = apply_filters( 'woocommerce_api_edit_product_tag_data', $data, $this );
    			$tag  = $this->get_product_tag( $id );
    
    			if ( is_wp_error( $tag ) ) {
    				return $tag;
    			}