function mycred_load_event_espresso3()
{
    if (!defined('EVENT_ESPRESSO_VERSION')) {
        return;
    }
    require_once myCRED_GATE_EVENT_DIR . 'mycred-eventespresso3.php';
    $gateway = new myCRED_Espresso_Gateway();
    $gateway->load();
}
Beispiel #2
0
                return;
            }
            // Labels
            $new_settings['labels']['gateway'] = strip_tags($post['labels']['gateway'], '<strong><em><span>');
            $new_settings['labels']['payment'] = strip_tags($post['labels']['payment'], '<strong><em><span>');
            $new_settings['labels']['button'] = sanitize_text_field($post['labels']['button']);
            // Point Type
            $new_settings['type'] = sanitize_text_field($post['type']);
            // Exchange Rate
            $new_settings['rate'] = sanitize_text_field($post['rate']);
            // Profit Share
            $new_settings['share'] = abs($post['share']);
            // Log
            $new_settings['log'] = sanitize_text_field($post['log']);
            // Messages
            $new_settings['messages']['solvent'] = sanitize_text_field(stripslashes($post['messages']['solvent']));
            $new_settings['messages']['insolvent'] = sanitize_text_field(stripslashes($post['messages']['insolvent']));
            $new_settings['messages']['visitors'] = sanitize_text_field(stripslashes($post['messages']['visitors']));
            // Let others play
            $new_settings = apply_filters('mycred_espresso_save_pref', $new_settings);
            // Save new settings
            $current = $this->prefs;
            $this->prefs = mycred_apply_defaults($current, $new_settings);
            update_option('mycred_espresso_gateway_prefs', $this->prefs);
            // Flag update
            $this->update = true;
        }
    }
    $gateway = new myCRED_Espresso_Gateway();
    $gateway->load();
}