Hi, I would like some assistance with adding php snippets in Taskhive and need to add terms and conditions checkbox to registration form. Thank you
Download and install the code snippers plugin.
Add this code snippet:
<?php
add_filter(
'hivepress/v1/forms/user_register',
function( $form ) {
$form['fields']['custom_name_here'] = [
'caption' => 'I have read the <a href="https://linktoterms.com">terms</a>',
'type' => 'checkbox',
'_order' => 123,
];
return $form;
},
1000
);
1 Like
Thank you!
How do you recover a recently deleted snippet ?
Iām not sure if the Code Snippets plugin has the Trash section to recover snippets, it may be easier to re-add the snippet. This is also possible without a snippet, if you assign the Terms page in HivePress/Settings/Users/Registration.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.