Updating WordPress table with hook not working..
-
Hello,
not sure why my function isn’t working. Im triggering on payment status ‘Completed’ to paste the data in the array below into a new table.
Can you see what i have done wrong?
Thank you,
Robadd_action(‘paypal_ipn_for_wordpress_payment_status_completed’, ‘post_to_my_ipn_tbl’, 10, 1);
function post_to_my_ipn_tbl($posted)
{
global $wpdb;
$table_name = $wpdb->prefix .”ipn_data_tbl”;
$wpdb->insert( $table_name, array(‘payer_email’=>$payer_email,’first_name’ => $first_name,’last_name’ => $last_name ) );
}
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Updating WordPress table with hook not working..’ is closed to new replies.