This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'gform_validation', 'ask_custom_validation' ); | |
function ask_custom_validation( $validation_result ) { | |
global $email, $wpdb; | |
$table_lead = $wpdb->prefix . 'rg_lead'; | |
$table_lead_detail = $wpdb->prefix . 'rg_lead_detail'; | |
// new gravity form | |
$rg = new RGFormsModel(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* MyCred Monthly Payouts | |
* On the first page load on the first day of each month | |
* award 10 points to all users with the role "Subscriber". | |
* @version 1.0 | |
*/ | |
add_action( 'mycred_init', 'mycred_pro_monthly_payouts' ); | |
function mycred_pro_monthly_payouts() { | |
if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) return; |