$17 GRAYBYTE WORDPRESS FILE MANAGER $11

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.15.130 | ADMIN IP 216.73.217.83
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/bravetechrwanda/itiministry.org/wp-content/plugins/give/src/Donations/resources/

HOME
Current File : /home/bravetechrwanda/itiministry.org/wp-content/plugins/give/src/Donations/resources//utils.ts
import {useEntityRecord} from '@wordpress/core-data';
import {Donation} from '@givewp/donations/admin/components/types';
import type {GiveDonationOptions} from '@givewp/donations/types';

declare const window: {
    GiveDonationOptions: GiveDonationOptions;
} & Window;

/**
 * @since 4.6.0
 */
export function useDonationEntityRecord(donationId?: number) {
    const urlParams = new URLSearchParams(window.location.search);

    const {
        record: donation,
        hasResolved,
        isResolving,
        save,
        edit,
    }: {
        record: Donation;
        hasResolved: boolean;
        isResolving: boolean;
        save: () => any;
        edit: (data: Donation | Partial<Donation>) => void;
    } = useEntityRecord('givewp', 'donation', donationId ?? urlParams.get('id'));

    return {record: donation, hasResolved, isResolving, save, edit};
}

/**
 * @since 4.6.0
 */
export function getDonationOptionsWindowData(): GiveDonationOptions {
    return window.GiveDonationOptions;
}

Current_dir [ WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
admin
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
common
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
components
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
constants
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
hooks
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
index.tsx
0.301 KB
26 Sep 2024 1.57 AM
bravetechrwanda / bravetechrwanda
0644
types.ts
0.975 KB
16 Oct 2025 6.10 PM
bravetechrwanda / bravetechrwanda
0644
utils.ts
0.98 KB
10 Sep 2025 5.42 PM
bravetechrwanda / bravetechrwanda
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF Static GIF