• Resolved movahedian1

    (@movahedian1)


    hi
    how can change text saved in post excerpt in function generate_coupons
    for example change
    ‘post_excerpt’ => ‘Referral coupon for: ‘.$user_email,
    to
    ‘post_excerpt’ => ‘code: ‘.$username,
    thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Goran87

    (@goran87)

    Hi movah,

    you can manually change it like you explained. Ill push update that will have this in translation file as well.

    Thanks for pointing it out.

    Thread Starter movahedian1

    (@movahedian1)

    hi @goran87
    thanks for reply
    but how can replace email with username (not direct in core of plugin)?

    • This reply was modified 8 years, 10 months ago by movahedian1.
    • This reply was modified 8 years, 10 months ago by movahedian1.
    Plugin Author Goran87

    (@goran87)

    Hi,

    You need to do that in plugins core, change it to:

    $user_info->user_login

    instead of $user_email.

    Thread Starter movahedian1

    (@movahedian1)

    hi
    and there is no way to override plugin and did not change plugin core?
    because change in plugin core destroy in next update
    thanks

    Plugin Author Goran87

    (@goran87)

    Hi, there is no filter or action for that one. I could add it in the next update, but usually I add them when more people make a request for it. But, ill let you know here when I do.

    Thread Starter movahedian1

    (@movahedian1)

    hi, thanks

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘change text in post_excerpt’ is closed to new replies.