Viewing 6 replies - 1 through 6 (of 6 total)
  • Hey there,

    You can use the pmpro_registration_checks hook to add any additional code before checkout, so you could check for whatever sort of validations you want. Additionally, all extra fields added with Register Helper are stored in that user’s usermeta.

    Hope that helps!

    Thanks,
    Jess

    Thread Starter wpshiran

    (@wpshiran)

    Hey Jessica,

    Thank you so much for the reply. I know a very few of PHP. Can you please show me an example?

    IF the code is this, where to hook the additional code?

    $text = new PMProRH_Field(“member_no”, “text”, array(“size”=>40, “class”=>”Membership No”, “profile”=>true, “required”=>true));
    pmprorh_add_registration_field(“after_billing_fields”, $text);

    Please help and thanks in advance
    Shiran

    Thread Starter wpshiran

    (@wpshiran)

    Hey everyone….

    Lost in codes…please save a life

    Hello. You can add the code above to your theme’s functions.php file or create a separate customizations plugin. However, if you want to do extra validation you will have to hook into the function mentioned by Jessica. Paid Memberships Pro’s hooks and filters works just like the ones in WordPress.

    If you need further help in using the hook, please consider becoming a member at https://www.paidmembershipspro.com/pricing/ for our member support forums. Hope this helps.

    Marking this as resolved.

    Marking this as resolved.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Field Validation when Checkout’ is closed to new replies.