#19555
 infinitelinx
Participant

I entered the following in sweet-child/functions.php and changed 9 to 1 because that is the ID for the FREE membership level setup in PMPRO. When I do this and try to log out of WP so I can register and test it out, I get the attached error. Also, you stated “as provided earlier:” however, I don’t see anything about that in the SweetDate documentation. Thank you.

<?php
/**
* @package WordPress
* @subpackage Sweetdate
* @author SeventhQueen <themesupport@seventhqueen.com>
* @since Sweetdate 1.0
*/

/**
* Sweetdate Child Theme Functions
* Add extra code or replace existing functions
*/

add_action(‘user_register’, ‘kleo_pmpro_default_level’);
function kleo_pmpro_default_level($user_id) {
pmpro_changeMembershipLevel(1,$user_id);
}

?>

Attachments:
  1. Error1.docx

Log in with your credentials

Forgot your details?