• Resolved JakenCD

    (@vansite)


    Hi guys

    Thanks for the plugin. For now it is working like a charm.

    II have a question: Is there a way to add a custom field in the registration form? It would be a “text” one.

    Thanks.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author iova.mihai

    (@iovamihai)

    Hey @vansite,

    With the free version, the one hosted here on the WordPress plugin directory, you cannot add custom fields to the registration forms.

    For more information please contact us directly on our website here: https://slicewp.com/contact/

    Considering these forums are only meant for the version of the plugin hosted here, I cannot offer you more information on the subject.

    Thank you and best wishes,
    Mihai

    • This reply was modified 3 years, 5 months ago by iova.mihai.
    Thread Starter JakenCD

    (@vansite)

    Hi, thanks for the reply. Pretty sure I can add the custom field custom coding, however.

    Plugin Author iova.mihai

    (@iovamihai)

    Hey @vansite,

    This indeed can be done using the free version. Unfortunately, we don’t yet have a developer documentation, so I can’t help with an article explaining how to set it up.

    If you’re comfortable with code, I recommend looking for the “slicewp_register_affiliate_fields” filter and adding a callback to it. The callback function will receive an array with all the fields.

    The field should be set as an array, similar to this:

    $fields[] = array(
    	'type' => 'text',
    	'id' => 'your-field-id',
    	'name' => 'your_field_name',
    	'label'	=> 'Label',
    	'is_required' => true,
    	'output_conditionals' => array( 'form' => array( 'affiliate_registration' ) )
    );

    Best wishes,
    Mihai

    Thread Starter JakenCD

    (@vansite)

    Thanks! I will try it. Let’s see how it goes, hehe.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom field’ is closed to new replies.