Noptin_WP_Registration_Form::uwp_output_checkbox( $action )

Displays a subscription checkbox on UsersWP registration pages.


Source Source

File: includes/integrations/class-noptin-wp-registration-form.php

	function uwp_output_checkbox( $action ) {

		if ( 'register' === $action && $this->can_show_checkbox() ) {
			
			if( function_exists( 'aui' ) && uwp_get_option( 'design_style', 'bootstrap' ) ) {

				echo aui()->input( array(
					'type'            =>  'checkbox',
					'id'              =>  wp_doing_ajax() ? 'noptin-subscribe_ajax' : 'noptin-subscribe',
					'name'            =>  'noptin-subscribe',
					'value'           =>  1,
					'label'  => $this->get_label_text(),
				));
				return;

			}

			echo $this->get_checkbox_markup();

		}

	}

Top ↑

Changelog Changelog

Changelog
VersionDescription
1.2.6Introduced.

Top ↑

User Contributed Notes User Contributed Notes

30 day money back guarantee
Safe & Secure online payment
Custom CSS Slide Example
Custom Animation Example
Default Animation