Skip to content

Commit

Permalink
added first,last name,phone
Browse files Browse the repository at this point in the history
  • Loading branch information
Preciousomonze committed Jul 5, 2018
1 parent 7e74533 commit 9004d14
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion includes/rave-shortcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ public function pay_button_shortcode( $attr, $content="" ) {

$btn_text = empty( $content ) ? $this->pay_button_text() : $content;
$email = $this->use_current_user_email( $attr ) ? wp_get_current_user()->user_email : '';
$fname = wp_get_current_user()->user_firstname;
$lname = wp_get_current_user()->user_lastname;
if (!empty($this->get_logo_url($attr))) {
$attr['logo'] = $this->get_logo_url($attr);
}
Expand All @@ -63,7 +65,10 @@ public function pay_button_shortcode( $attr, $content="" ) {
$atts = shortcode_atts( array(
'amount' => '',
'custom_currency' => [],
'email' => $email,
'firstname' => $fname,
'lastname' => $lname,
'phone' => '',
'email' => $email,
'country' => $admin_settings->get_option_value('country'),
'currency' => $admin_settings->get_option_value('currency')
), $attr );
Expand Down

0 comments on commit 9004d14

Please sign in to comment.