Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 169539

add checkbox to custom form not subscribing

$
0
0

Replies: 0

I’ve tried adding the checkbox to the Registration form of Ultimate Member plugin, like described here: https://mc4wp.com/kb/add-sign-checkbox-custom-form/, but checking the checkbox does not subscribe me.

I’ve added the code in the register.php template like this:

<form method="post" action="">
<?php
	do_action("um_before_form", $args);
	do_action("um_before_{$mode}_fields", $args);
	do_action("um_main_{$mode}_fields", $args);
	do_action("um_after_form_fields", $args);

	?><label>
		<input type="checkbox" name="mc4wp-subscribe" value="1" />
		Sign-up to our newsletter.
	</label><?php

	do_action("um_after_{$mode}_fields", $args);
	do_action("um_after_form", $args);
?>
</form>

Any idea why this is ot working?


Viewing all articles
Browse latest Browse all 169539

Trending Articles