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.8.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 629
    625
    626
    627
    628
    629
    630
    631
    632
    633
    634
    635
         * @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 1685
    1681
    1682
    1683
    1684
    1685
    1686
    1687
    1688
    1689
    1690
    1691
         * @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
    515
    516
    517
    518
    519
    520
    521
    522
    523
    524
    525
         * @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.