How to add php code snippets in Taskhive

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:

	function( $form ) {
		$form['fields']['custom_name_here'] = [
			'caption' => 'I have read the <a href="">terms</a>',
			'type'    => 'checkbox',
			'_order'  => 123,

		return $form;
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.