PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins1
/
mycred
/
includes
<?php if ( ! defined( 'myCRED_VERSION' ) ) exit; /** * Load Referral Program * @since 1.5.3 * @version 1.0 */ if ( ! function_exists( 'mycred_load_referral_program' ) ) : function mycred_load_referral_program() { // BuddyPress: Hook into user activation if ( function_exists( 'buddypress' ) && apply_filters( 'bp_core_signup_send_activation_key', true ) === true ) add_action( 'bp_core_activated_user', 'mycred_detect_bp_user_activation' ); // Logged in users do not get points if ( is_user_logged_in() && apply_filters( 'mycred_affiliate_allow_members', false ) === false ) return; // Points for visits add_action( 'template_redirect', 'mycred_detect_referred_visits' ); // Points for signups add_action( 'user_register', 'mycred_detect_referred_signups' ); } endif; add_action( 'mycred_init', 'mycred_load_referral_program' ); /** * Detect Referred Visits * @since 1.5.3 * @version 1.0.1 */ if ( ! function_exists( 'mycred_detect_referred_visits' ) ) : function mycred_detect_referred_visits() { do_action( 'mycred_referred_visit' ); $keys = apply_filters( 'mycred_referral_keys', array() ); if ( ! empty( $keys ) ) { wp_redirect( remove_query_arg( $keys ), 301 ); exit; } } endif; /** * Detect Referred Signups * @since 1.5.3 * @version 1.0 */ if ( ! function_exists( 'mycred_detect_referred_signups' ) ) : function mycred_detect_referred_signups( $new_user_id ) { do_action( 'mycred_referred_signup', $new_user_id ); } endif; /** * Detect Referred BP User Activation * @since 1.5.3 * @version 1.0 */ if ( ! function_exists( 'mycred_detect_bp_user_activation' ) ) : function mycred_detect_bp_user_activation( $user_id ) { do_action( 'mycred_bp_user_activated', $user_id ); } endif;
[+]
..
[-] mycred-admin.php
[edit]
[-] mycred-remote.php
[edit]
[-] mycred-about.php
[edit]
[+]
widgets
[-] index.php
[edit]
[-] mycred-shortcodes.php
[edit]
[+]
importers
[-] mycred-leaderboard.php
[edit]
[+]
hooks
[-] mycred-object.php
[edit]
[-] mycred-protect.php
[edit]
[-] mycred-overview.php
[edit]
[-] mycred-update.php
[edit]
[-] mycred-referrals.php
[edit]
[-] mycred-log.php
[edit]
[-] mycred-widgets.php
[edit]
[-] mycred-importer.php
[edit]
[-] mycred-install.php
[edit]
[+]
shortcodes
[-] mycred-functions.php
[edit]
[-] mycred-depreciated.php
[edit]
[+]
classes
[-] mycred-setup.php
[edit]
[-] .includes.php
[edit]
[-] mycred-network.php
[edit]