woocommerce_rest_delete_{$this->post_type}

woocommerce_rest_delete_{$this->post_type}

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}') is found 2 times:

  • /includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php line 1727
    1723
    1724
    1725
    1726
    1727
    1728
    1729
    1730
    1731
    1732
    1733
         * @param object           $post     The deleted or trashed item.
         * @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}", $post, $response, $request );
     
        return $response;
    }
     
    /**
     * Get the Product's schema, conforming to JSON Schema.
  • /includes/rest-api/Controllers/Version3/class-wc-rest-posts-controller.php line 477
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
         * @param object           $post     The deleted or trashed item.
         * @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}", $post, $response, $request );
     
        return $response;
    }
     
    /**
     * Prepare links for the request.