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.5.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 1722
    		 * @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
    		 * @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.