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.9.5.1

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 626
    		 * @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 1680
    		 * @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 519
    		 * @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.