Find Answers and Get Support › Forums › Gwangi – PRO Multi-Purpose Membership, Social Network & BuddyPress Community Theme › Compatible Plugins › Paid Memberships Pro › problem plugin paid membership pro
- This topic has 4 replies, 2 voices, and was last updated 5 years, 3 months ago by
Jason.
-
AuthorPosts
-
ruizParticipant@ruiz
- 9 Topics
- 60 Posts
hi, i don´t know if this title going here…sorry…
i try to use the plugin paid membership pro to show diferent content by level,it´s ok, but i have a problem, i use the register system of paid membership pro, and I have followed the instructions in this codefunction my_pmprorh_init() { // don't break if Register Helper is not loaded if ( ! function_exists( 'pmprorh_add_registration_field' ) ) { return false; } // define the fields $fields = array(); /* $fields[] = new PMProRH_Field( 'field_328', // input name, will also be used as meta key 'select', // type of field array( 'buddypress' => 'field_328', // XProfile Field Name <-- !!! 'label' => 'Tipo Usuario', // custom field label //'size' => 40, // input size 'options' =>array('option_value' => 'Opcion 1','Opcion 2'), 'class' => 'company', // custom class 'profile' => true, // show in user profile 'required' => true, // make this field required 'levels' => array( 1, 2 ), // only levels 1 and 2 should have the company field ) ); */ $fields[] = new PMProRH_Field( 'field_328', // input name, will also be used as meta key 'text', // type of field array( 'buddypress' => 'field_328', // XProfile Field Name <-- !!! 'label' => 'Tipo Usuario Seleccionado', // custom field label //'size' => 40, // input size 'value' =>'Profesional', //'class' => 'company', // custom class 'profile' => true, // show in user profile //'required' => true, // make this field required 'readonly' =>true, 'levels' => array( 1 ), // only levels 1 and 2 should have the company field ) ); $fields[] = new PMProRH_Field( 'field_328', // input name, will also be used as meta key 'text', // type of field array( 'field_328' => 'field_328', // XProfile Field Name <-- !!! //'label' => 'Tipo Usuario', // custom field label //'size' => 40, // input size 'value' =>'Estudiante', 'class' => 'company', // custom class 'profile' => true, // show in user profile // 'required' => true, // make this field required 'readonly' =>true, 'levels' => array( 2 ), // only levels 1 and 2 should have the company field ) ); // add the fields into a new checkout_boxes are of the checkout page foreach ( $fields as $field ) { pmprorh_add_registration_field( //'checkout_boxes', // location on checkout pageç 'after_email', $field // PMProRH_Field object ); } // that's it. see the PMPro Register Helper readme for more information and examples. } add_action( 'init', 'my_pmprorh_init' );
and that works, but it duplicate field_328 and not appears in the xprofile page, where the user can edit and show, only show in admin view, can you help me please?
January 17, 2020 at 11:17 #9359@themoceratops- 1 Topics
- 430 Posts
Hi @ruiz,
Unfortunately, we have no clue.
Please note that this issue is related with the use of Paid Memberships Pro and BuddyPress, 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:
https://buddypress.org/support/We remain available for all support requests related with the use of your theme.
Best,
January 17, 2020 at 12:10 #9362 -
AuthorPosts
Hi there,
This topic has been inactive for a while now so we will be closing it to keep the forum tidy. Don't hesitate to create a new topic if you still need help and we'll be glad to help you!
Best regards,
The Themosaurus team.
The topic ‘problem plugin paid membership pro’ is closed to new replies.