@@ -41,7 +41,7 @@ |
||
| 41 | 41 | * @param array $anonymous_data |
| 42 | 42 | * @param int $user_id |
| 43 | 43 | * @param string $trigger |
| 44 | - * @return boolean |
|
| 44 | + * @return boolean|null |
|
| 45 | 45 | */ |
| 46 | 46 | public function subscribe_from_bbpress( $anonymous_data, $user_id, $trigger ) { |
| 47 | 47 | $user_data = get_userdata( $user_id ); |
@@ -40,7 +40,6 @@ |
||
| 40 | 40 | * @param string $user_login |
| 41 | 41 | * @param string $user_password |
| 42 | 42 | * @param string $user_email |
| 43 | - * @param array $usermeta |
|
| 44 | 43 | */ |
| 45 | 44 | public function subscribe_from_buddypress_form( $user_id, $user_login, $user_password, $user_email ) { |
| 46 | 45 | if ( $this->was_checkbox_checked( $this->type ) === false ) { |
@@ -41,7 +41,6 @@ discard block |
||
| 41 | 41 | |
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | - * @param array $meta |
|
| 45 | 44 | * |
| 46 | 45 | * @return array |
| 47 | 46 | */ |
@@ -57,7 +56,7 @@ discard block |
||
| 57 | 56 | /** |
| 58 | 57 | * @param int $payment_id The ID of the payment |
| 59 | 58 | * |
| 60 | - * @return bool|string |
|
| 59 | + * @return false|null |
|
| 61 | 60 | */ |
| 62 | 61 | public function subscribe_from_edd_purchase( $payment_id ) { |
| 63 | 62 | $meta = get_post_meta( $payment_id , '_yikes_easy_mc_optin' , true ); |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | * |
| 20 | 20 | * @param int $form_id The ID of the form to retrieve. |
| 21 | 21 | * |
| 22 | - * @return array The array of form data. |
|
| 22 | + * @return string The array of form data. |
|
| 23 | 23 | */ |
| 24 | 24 | public function get_form( $form_id ) { |
| 25 | 25 | $all_forms = $this->get_all_forms(); |
@@ -1051,6 +1051,7 @@ discard block |
||
| 1051 | 1051 | * @param string | $slug | The type of message we're looking for |
| 1052 | 1052 | * @param string | $response_text| The default response message |
| 1053 | 1053 | * @param array | $data | An array of data that may be needed to construct the user's error message |
| 1054 | + * @param string $slug |
|
| 1054 | 1055 | * @return string| $response_text| The $response_text (after it's potentially been changed) |
| 1055 | 1056 | */ |
| 1056 | 1057 | protected function check_for_user_defined_response_message( $slug, $response_text, $data = false ) { |
@@ -1198,6 +1199,7 @@ discard block |
||
| 1198 | 1199 | * |
| 1199 | 1200 | * @param string | $message | The response message |
| 1200 | 1201 | * @param bool | $is_success | Boolean signifying if we're returning a success message or an error message |
| 1202 | + * @param boolean $is_success |
|
| 1201 | 1203 | * @return string| The $message wrapping in HTML |
| 1202 | 1204 | */ |
| 1203 | 1205 | public function wrap_form_submission_response( $message, $is_success ) { |
@@ -1242,6 +1244,7 @@ discard block |
||
| 1242 | 1244 | * @param string | $response | The response message to display to the user |
| 1243 | 1245 | * @param array | $additional_fields | An array of additional fields to return |
| 1244 | 1246 | * @param bool | $return_response_non_ajax | Boolean deciding if we need to return a message |
| 1247 | + * @param integer $hide |
|
| 1245 | 1248 | * |
| 1246 | 1249 | * @return If AJAX, return $this->yikes_send_json_error(). If not AJAX, return an array || false. |
| 1247 | 1250 | */ |
@@ -489,6 +489,9 @@ discard block |
||
| 489 | 489 | $response_body = json_decode( wp_remote_retrieve_body( $response ) ); |
| 490 | 490 | } |
| 491 | 491 | |
| 492 | + /** |
|
| 493 | + * @return string |
|
| 494 | + */ |
|
| 492 | 495 | public function get_premium_license( $plugin_slug ) {
|
| 493 | 496 | |
| 494 | 497 | switch( $plugin_slug ) {
|
@@ -823,6 +826,7 @@ discard block |
||
| 823 | 826 | |
| 824 | 827 | /** |
| 825 | 828 | * Convert the php date format string to a js date format |
| 829 | + * @param string $type |
|
| 826 | 830 | */ |
| 827 | 831 | public function yikes_jQuery_datepicker_date_format_php_to_js( $sFormat, $type ) {
|
| 828 | 832 | switch ( $type ) {
|
@@ -1318,8 +1322,6 @@ discard block |
||
| 1318 | 1322 | * the correct WordPress options API (old plugin stored options wierdly) |
| 1319 | 1323 | * |
| 1320 | 1324 | * @since 1.0.0 |
| 1321 | - * @param string $yikes_inc_easy_mailchimp_extender The name of this plugin. |
|
| 1322 | - * @param string $version The version of this plugin. |
|
| 1323 | 1325 | */ |
| 1324 | 1326 | public function check_for_old_yks_mc_options() {
|
| 1325 | 1327 | $old_plugin_options = get_option( 'ykseme_storage' ); |
@@ -1354,8 +1356,6 @@ discard block |
||
| 1354 | 1356 | * the correct WordPress options API (old plugin stored options wierdly) |
| 1355 | 1357 | * |
| 1356 | 1358 | * @since 1.0.0 |
| 1357 | - * @param string $yikes_inc_easy_mailchimp_extender The name of this plugin. |
|
| 1358 | - * @param string $version The version of this plugin. |
|
| 1359 | 1359 | */ |
| 1360 | 1360 | public function display_options_migrate_notice() {
|
| 1361 | 1361 | |
@@ -281,6 +281,10 @@ |
||
| 281 | 281 | * before continuing |
| 282 | 282 | * @since 6.0.0 |
| 283 | 283 | */ |
| 284 | + |
|
| 285 | + /** |
|
| 286 | + * @param string $type |
|
| 287 | + */ |
|
| 284 | 288 | public function was_checkbox_checked( $type ) {
|
| 285 | 289 | return ( isset( $_POST[ 'yikes_mailchimp_checkbox_' . $type ] ) && $_POST[ 'yikes_mailchimp_checkbox_' . $type ] == 1 ); |
| 286 | 290 | } |
@@ -113,7 +113,7 @@ |
||
| 113 | 113 | |
| 114 | 114 | /** |
| 115 | 115 | * @param int $order_id |
| 116 | - * @return boolean |
|
| 116 | + * @return boolean|null |
|
| 117 | 117 | */ |
| 118 | 118 | public function subscribe_from_woocommerce_checkout( $order_id ) { |
| 119 | 119 | $do_optin = get_post_meta( $order_id, 'yikes_easy_mailchimp_optin', true ); |