woocommerce_rest_delete_{$this->post_type}_object

woocommerce_rest_delete_{$this->post_type}_object

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

do_action('woocommerce_rest_delete_{$this->post_type}_object') is found 3 times:

  • /includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php line 575
    		 * @param WC_Data          $object   The deleted or trashed object.
    		 * @param WP_REST_Response $response The response data.
    		 * @param WP_REST_Request  $request  The request sent to the API.
    		 */
    		do_action( "woocommerce_rest_delete_{$this->post_type}_object", $object, $response, $request );
    
    		return $response;
    	}
    
    	/**
    	 * Bulk create, update and delete items.
    
  • /includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php line 1660
    		 * @param WC_Data          $object   The deleted or trashed object.
    		 * @param WP_REST_Response $response The response data.
    		 * @param WP_REST_Request  $request  The request sent to the API.
    		 */
    		do_action( "woocommerce_rest_delete_{$this->post_type}_object", $object, $response, $request );
    
    		return $response;
    	}
    
    	/**
    	 * Get the Product's schema, conforming to JSON Schema.
    
  • /includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php line 505
    		 * @param WC_Data          $object   The deleted or trashed object.
    		 * @param WP_REST_Response $response The response data.
    		 * @param WP_REST_Request  $request  The request sent to the API.
    		 */
    		do_action( "woocommerce_rest_delete_{$this->post_type}_object", $object, $response, $request );
    
    		return $response;
    	}
    
    	/**
    	 * Get fields for an object if getter is defined.