@@ -102,10 +102,10 @@ discard block |
||
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | /** |
| 105 | - * Get the checkbox for the given integration and render it on the front end |
|
| 106 | - * @return string |
|
| 107 | - * @since 6.0.0 |
|
| 108 | - */ |
|
| 105 | + * Get the checkbox for the given integration and render it on the front end |
|
| 106 | + * @return string |
|
| 107 | + * @since 6.0.0 |
|
| 108 | + */ |
|
| 109 | 109 | public function yikes_get_checkbox() { |
| 110 | 110 | // enqueue our checkbox styles whenever the checkbox is displayed |
| 111 | 111 | wp_enqueue_style( 'yikes-easy-mailchimp-checkbox-integration-styles', plugin_dir_url( __FILE__ ) . '../css/yikes-inc-easy-mailchimp-checkbox-integration.min.css' ); |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | * a new integration type is submitted |
| 136 | 136 | * |
| 137 | 137 | * @since 6.0.0 |
| 138 | - **/ |
|
| 138 | + **/ |
|
| 139 | 139 | public function subscribe_user_integration( $email, $type, $merge_vars ) { |
| 140 | 140 | // get checkbox data |
| 141 | 141 | $checkbox_options = get_option( 'optin-checkbox-init' , '' ); |
@@ -198,9 +198,9 @@ discard block |
||
| 198 | 198 | } |
| 199 | 199 | |
| 200 | 200 | /** |
| 201 | - * Build merge varaibles array |
|
| 202 | - * @since 6.0.0 |
|
| 203 | - */ |
|
| 201 | + * Build merge varaibles array |
|
| 202 | + * @since 6.0.0 |
|
| 203 | + */ |
|
| 204 | 204 | public function user_merge_vars( WP_User $user ) { |
| 205 | 205 | // start with user_login as name, since that's always known |
| 206 | 206 | $merge_vars = array( |
@@ -240,10 +240,10 @@ discard block |
||
| 240 | 240 | |
| 241 | 241 | |
| 242 | 242 | /** |
| 243 | - * Alter the registraton complete message |
|
| 244 | - * if the registration form checkbox integration is toggled on |
|
| 245 | - * @since 6.0.0 |
|
| 246 | - **/ |
|
| 243 | + * Alter the registraton complete message |
|
| 244 | + * if the registration form checkbox integration is toggled on |
|
| 245 | + * @since 6.0.0 |
|
| 246 | + **/ |
|
| 247 | 247 | public function yikes_reg_complete_msg( $errors, $redirect_to ) { |
| 248 | 248 | if( isset( $errors->errors['registered'] ) ) { |
| 249 | 249 | $email_error = get_option( 'yikes_register_subscription_error' , '' ); |
@@ -262,8 +262,8 @@ discard block |
||
| 262 | 262 | unset( $tmp ); |
| 263 | 263 | delete_option( 'yikes_register_subscription_error' ); |
| 264 | 264 | } |
| 265 | - } |
|
| 266 | - return $errors; |
|
| 265 | + } |
|
| 266 | + return $errors; |
|
| 267 | 267 | } |
| 268 | 268 | |
| 269 | 269 | } |