• Resolved WP_User

    (@amarudare)


    Hey Franky
    I want to create monthly paid membership on my website. I want to assign user role to visitors so that they are not shown ads.

    Would it be possible to assign a user role such as “member” using the plugin?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Franky

    (@liedekef)

    If you use the option to create a wp user when someone becomes a member, then you can use the action hook eme_insert_member_action to do whatever you want afterwards. Use the function eme_get_person($member[‘person_id’]) to get the eme person info in your created function and that will give you the wp id too. Then you can do whatever you want with that id.
    Now, there are some eme shortcodes that also allow you to hide parts of a page based on membership, see the doc on [eme_if] and the _IS_USER_MEMBER_OF placeholder: https://www.e-dynamics.be/wordpress/conditional-tags/

    Thread Starter WP_User

    (@amarudare)

    Thanks Franky.

    I think this might work. Once a member has successfully paid, how can they login to the website WITHOUT logging into the admin dashboard that is.

    Will I have to add another plugin or is there a built in function for that?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Assign User role to member’ is closed to new replies.