Non-members register by pmpro plugin

This topic contains 3 replies, has 2 voices, and was last updated by  Olivier 2 weeks, 6 days ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #9546

    selv
    Participant
    • 6 Posts
    @rajha

    Hello,

    I would like to block members who want to register using this link when we are not connected:
    https://dating.gwangi-theme.com/membership-account/membership-checkout/?level=1

    Non-members use the free level by being disconnected and easily register without needing to fill in the “buddypress” fields.
    This is very annoying, especially for spam invading us.

    So I would only block registration for the “free” level to non-connected members.

    Do you think this is possible?

    Thank you in advance for your help. (sorry for my translate)

    #9590

    Olivier
    Participant
    • 716 Posts
    @themosaurusrex

    Hi @rajha,

    Unfortunately, we have no clue. 🤷‍♂️

    Please note that this issue is related with the use of Paid Memberships Pro, not with the use of your theme. It’s best if you try to reach the plugin authors as they will be more informed and better suited to help you.

    To go further, we invite you to post your request on their support forums:

    Support

    We remain available for all support requests related with the use of your theme.

    Best,

    #9610

    selv
    Participant
    • 6 Posts
    @rajha

    Hi;

    Ok ok, I found a temporary solution to hide the free from the unconnected.

    My code :

    if ( !pmpro_hasMembershipLevel(array(x,x,x)) ) :
    function see_bot() {
    global $wpdb;
    echo ‘<style> div#pmpro_levels_table > div > div:nth-of-type(1) { display: none; } </style>’;

    }
    add_action( ‘init’, ‘see_bot’ );
    endif;

    #9648

    Olivier
    Participant
    • 716 Posts
    @themosaurusrex

    Hi @rajha,

    Thank you for sharing this with the rest of the community. It might help others facing the same issue.

    Regards,

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Non-members register by pmpro plugin’ is closed to new replies.