Created
July 24, 2019 22:56
-
-
Save seedprod/1b8be963b47d7f8aad72a248c474ee51 to your computer and use it in GitHub Desktop.
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
// assign entering entries if enabled | |
$entries_tablename = $wpdb->prefix . 'rafflepress_entries'; | |
$insert_arrays[] = array( | |
'giveaway_id' =>$giveaway_id, | |
'contestant_id' => $contestant['id'], | |
'meta' => '{"action":"Entering Giveaway"}', | |
); | |
rafflepress_pro_wp_insert_rows($insert_arrays, $entries_tablename); | |
$contestant['total_entries'] = 1; | |
//end assign entering entries if enabled |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment