Changeset 3056023
- Timestamp:
- 03/21/2024 10:43:15 AM (2 years ago)
- Location:
- eber/trunk
- Files:
-
- 3 edited
-
index.php (modified) (1 diff)
-
init/frontend.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
eber/trunk/index.php
r3039822 r3056023 5 5 Description: Eber is a smart member system comes with comprehensive loyalty & rewards system, marketing and analytic tool. 6 6 Author: Eber 7 Version: 3. 77 Version: 3.8 8 8 Author URI: https://eber.co 9 9 License: GPLv2 or later -
eber/trunk/init/frontend.php
r3039822 r3056023 203 203 { 204 204 $birthday = $user_meta[$custom_field['birthday']][0]; 205 $post_data['birth_year'] = substr($birthday,0,4); 206 $post_data['birth_month'] = substr($birthday,4,2); 207 $post_data['birth_day'] = substr($birthday,6,2); 205 if(strtotime($birthday)) 206 { 207 $post_data['birth_year'] = date('Y',strtotime($birthday)); 208 $post_data['birth_month'] = intval(date('m',strtotime($birthday))); 209 $post_data['birth_day'] = intval(date('d',strtotime($birthday))); 210 } 211 else 212 { 213 $post_data['birth_year'] = substr($birthday,0,4); 214 $post_data['birth_month'] = substr($birthday,4,2); 215 $post_data['birth_day'] = substr($birthday,6,2); 216 } 217 208 218 } 209 219 … … 281 291 { 282 292 $birthday = $user_meta[$custom_field['birthday']][0]; 283 $post_data['birth_year'] = substr($birthday,0,4); 284 $post_data['birth_month'] = substr($birthday,4,2); 285 $post_data['birth_day'] = substr($birthday,6,2); 293 if(strtotime($birthday)) 294 { 295 $post_data['birth_year'] = date('Y',strtotime($birthday)); 296 $post_data['birth_month'] = intval(date('m',strtotime($birthday))); 297 $post_data['birth_day'] = intval(date('d',strtotime($birthday))); 298 } 299 else 300 { 301 $post_data['birth_year'] = substr($birthday,0,4); 302 $post_data['birth_month'] = substr($birthday,4,2); 303 $post_data['birth_day'] = substr($birthday,6,2); 304 } 286 305 } 287 306 -
eber/trunk/readme.txt
r3039822 r3056023 102 102 = 3.7 = 103 103 support Meta Data for sync from Eber to WP 104 = 3.8 = 105 support Multi data type of birthday 104 106 105 107
Note: See TracChangeset
for help on using the changeset viewer.