$95 GRAYBYTE WORDPRESS FILE MANAGER $57

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.216.51
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/bravetechrwanda/itiministry.org/plugins/give/includes/admin/tools/export/

HOME
Current File : /home/bravetechrwanda/itiministry.org/plugins/give/includes/admin/tools/export//export-actions.php
<?php
/**
 * Exports Actions
 *
 * These are actions related to exporting data from Give.
 *
 * @package     Give
 * @subpackage  Admin/Export
 * @copyright   Copyright (c) 2016, GiveWP
 * @license     https://opensource.org/licenses/gpl-license GNU Public License
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Process the download file generated by a batch export.
 *
 * @since 2.21.3 Sanitize 'class' url param.
 * @since 2.21.0 Sanitize file name. Allow plain file name only.
 * @since 2.9.0 pass the filename received to the exporter
 * @since 1.5
 *
 * @return void
 */
function give_process_batch_export_form() {

	if (! wp_verify_nonce( $_REQUEST['nonce'], 'give-batch-export' )) {
		wp_die(
			esc_html__( 'We\'re unable to recognize your session. Please refresh the screen to try again; otherwise contact your website administrator for assistance.', 'give' ),
			esc_html__( 'Error', 'give' ),
			['response' => 403,]
		);
	}

	require_once GIVE_PLUGIN_DIR . 'includes/admin/tools/export/class-batch-export.php';

    $classname = give_clean($_REQUEST['class']);

    /**
	 * Fires before batch export.
	 *
	 * @since 1.5
	 *
	 * @param string $classname Export class.
	 */
	do_action( 'give_batch_export_class_include', $classname );

    if (!is_subclass_of($classname, \Give_Batch_Export::class)) {
        wp_die(
            esc_html__(
                'We\'re unable to recognize exporter class. Please refresh the screen to try again; otherwise contact your website administrator for assistance.',
                'give'
            ),
            esc_html__('Error', 'give'),
            ['response' => 403,]
        );
    }

    $filename = basename(sanitize_file_name($_REQUEST['file_name']), '.csv');

    $export = new $classname( 1, $filename );
	$export->export();
}

add_action( 'give_form_batch_export', 'give_process_batch_export_form' );

/**
 * Exports earnings for a specified time period.
 *
 * Give_Earnings_Export class.
 *
 * @since 1.5
 * @return void
 */
function give_export_earnings() {
	require_once GIVE_PLUGIN_DIR . 'includes/admin/tools/export/class-export-earnings.php';

	$earnings_export = new Give_Earnings_Export();

	$earnings_export->export();
}

add_action( 'give_earnings_export', 'give_export_earnings' );

/**
 * Exports Give's core settings.
 *
 * Give_Core_Settings class.
 *
 * @since 1.8.17
 * @return void
 */
function give_core_settings_export() {
	require_once GIVE_PLUGIN_DIR . 'includes/admin/tools/export/class-core-settings-export.php';

	$core_settings = new Give_Core_Settings_Export();

	$core_settings->export();
}

add_action( 'give_core_settings_export', 'give_core_settings_export' );


/**
 * Add a hook allowing extensions to register a hook on the batch export process.
 *
 * @since  1.5
 * @return void
 */
function give_register_batch_exporters() {
	if ( is_admin() ) {
		/**
		 * Fires in the admin, while plugins loaded.
		 *
		 * Allowing extensions to register a hook on the batch export process.
		 *
		 * @since 1.5
		 *
		 * @param string $class Export class.
		 */
		do_action( 'give_register_batch_exporter' );
	}
}

add_action( 'plugins_loaded', 'give_register_batch_exporters' );


Current_dir [ WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
25 May 2026 4.20 PM
bravetechrwanda / bravetechrwanda
0755
class-batch-export-donors.php
12.333 KB
28 Oct 2020 5.02 AM
bravetechrwanda / bravetechrwanda
0644
class-batch-export.php
6.208 KB
17 Jun 2022 4.03 AM
bravetechrwanda / bravetechrwanda
0644
class-core-settings-export.php
2.065 KB
17 Jan 2019 10.34 AM
bravetechrwanda / bravetechrwanda
0644
class-export-earnings.php
5.185 KB
9 Jul 2022 12.12 AM
bravetechrwanda / bravetechrwanda
0644
class-export.php
3.979 KB
9 Jul 2022 12.12 AM
bravetechrwanda / bravetechrwanda
0644
class-give-export-donations.php
9.732 KB
28 Oct 2020 5.02 AM
bravetechrwanda / bravetechrwanda
0644
export-actions.php
3.102 KB
8 Jul 2022 3.27 AM
bravetechrwanda / bravetechrwanda
0644
export-functions.php
3.898 KB
5 Jun 2024 11.47 PM
bravetechrwanda / bravetechrwanda
0644
give-export-donations-exporter.php
18.599 KB
18 Jul 2024 12.34 AM
bravetechrwanda / bravetechrwanda
0644
give-export-donations-functions.php
17.742 KB
5 Jun 2024 11.47 PM
bravetechrwanda / bravetechrwanda
0644
pdf-reports.php
10.842 KB
31 Mar 2025 11.17 PM
bravetechrwanda / bravetechrwanda
0644

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