Skip to content

Instantly share code, notes, and snippets.

@seedprod
Created July 24, 2019 22:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seedprod/1b8be963b47d7f8aad72a248c474ee51 to your computer and use it in GitHub Desktop.
Save seedprod/1b8be963b47d7f8aad72a248c474ee51 to your computer and use it in GitHub Desktop.
// 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