woocommerce_delete_order_downloadable_permissions, $postid

woocommerce_delete_order_downloadable_permissions, $postid

Appears in:
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.11.0.0

do_action('woocommerce_delete_order_downloadable_permissions, $postid') is found 1 times:

  • /includes/class-wc-post-data.php line 633
    	 * @return void
    	 */
    	public static function delete_order_downloadable_permissions( $postid ) {
    		if ( OrderUtil::is_order( $postid, wc_get_order_types() ) ) {
    			do_action( 'woocommerce_delete_order_downloadable_permissions', $postid );
    
    			$data_store = WC_Data_Store::load( 'customer-download' );
    			$data_store->delete_by_order_id( $postid );
    
    			do_action( 'woocommerce_deleted_order_downloadable_permissions', $postid );
    		}