/var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/includes/gateways
NameSizeModeActions
paypal/-0755rm
stripe/-0755rm
actions.php39250644editdlrm
functions.php96720644editdlrm
manual.php79820644editdlrm
offline-donations.php169160644editdlrm
Edit: /var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/includes/gateways/actions.php (3925B)
$form_id_prefix, ); /** * Fire to render donation form. * * @since 1.7 */ do_action( 'give_donation_form', $post_data['give_form_id'], $args ); exit(); } } add_action( 'wp_ajax_give_load_gateway', 'give_load_ajax_gateway' ); add_action( 'wp_ajax_nopriv_give_load_gateway', 'give_load_ajax_gateway' ); /** * Create wp nonce using Ajax call. * * Use give_donation_form_nonce() js fn to create nonce. * * @since 2.0 * * @return void */ function give_donation_form_nonce() { if ( isset( $_POST['give_form_id'] ) ) { // Get donation form id. $form_id = is_numeric( $_POST['give_form_id'] ) ? absint( $_POST['give_form_id'] ) : 0; // Send nonce json data. wp_send_json_success( wp_create_nonce( "give_donation_form_nonce_{$form_id}" ) ); } } add_action( 'wp_ajax_give_donation_form_nonce', 'give_donation_form_nonce' ); add_action( 'wp_ajax_nopriv_give_donation_form_nonce', 'give_donation_form_nonce' ); /** * Create all nonce of donation form using Ajax call. * Note: only for internal use * * @since 2.2.0 * * @return void */ function __give_donation_form_reset_all_nonce() { if ( isset( $_POST['give_form_id'] ) ) { // Get donation form id. $form_id = is_numeric( $_POST['give_form_id'] ) ? absint( $_POST['give_form_id'] ) : 0; $data = array( 'give_form_hash' => wp_create_nonce( "give_donation_form_nonce_{$form_id}" ), 'give_form_user_register_hash' => wp_create_nonce( "give_form_create_user_nonce_{$form_id}" ), ); /** * Filter the ajax request data * * @since 2.2.0 */ $data = apply_filters( 'give_donation_form_reset_all_nonce_data', $data ); // Send nonce json data. wp_send_json_success( $data ); } wp_send_json_error(); } add_action( 'wp_ajax_give_donation_form_reset_all_nonce', '__give_donation_form_reset_all_nonce' ); add_action( 'wp_ajax_nopriv_give_donation_form_reset_all_nonce', '__give_donation_form_reset_all_nonce' ); /** * Sets an error within the donation form if no gateways are enabled. * * @todo: we can deprecate this function in future because gateways will not empty if get via Give API. * * @since 1.0 * * @return void */ function give_no_gateway_error() { $gateways = give_get_enabled_payment_gateways(); if ( empty( $gateways ) ) { give_set_error( 'no_gateways', esc_html__( 'You must enable a payment gateway to use Give.', 'give' ) ); } else { give_unset_error( 'no_gateways' ); } } add_action( 'init', 'give_no_gateway_error' );