Is it possible to configure a notification with CTA buttons via Amember?

Discussion in 'Customization & add-ons' started by invictum594, Apr 1, 2015.

  1. invictum594

    invictum594 New Member

    Joined:
    Mar 25, 2014
    Messages:
    22
    Scenario:

    User1 clicks a CTA button directing them to a specific page/post/article/shopping cart etc.

    Admin receives notification: "User1 Clicked on link http://thisiswhatiminterestedin.com

    Now I can assign User1 to a group that is interested in x topic, and I can send him more targeted curated information/products/etc.

    I know that there are plugins on WP that can do this, but I don't think they would give me that users memberid.

    Anyone figured out a workaround for this type of thing?
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,274
    If you are using amember4 plugin in wordpress you can get user's ID:
    via shortcode: [am4user var='user_id']
    or in php:
    PHP:
    $user Am_Lite::getInstance()->getUser();
    echo 
    $user['user_id'];
    So you should be able to get user_id in wordpress plugin .

Share This Page