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(); } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.2.6 | Introduced. |