Skip to content

Instantly share code, notes, and snippets.

Emerson Maningo codex-m

Block or report user

Report or block codex-m

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@codex-m
codex-m / unix_time_datefix
Created Sep 17, 2014
Code to fix 01.01.1970 date problem in Types plugin (starting version 1.6.2+)
View unix_time_datefix
/** START OF CODE
* Patch to correct wrong date format in dB in Types fields
* Add this code to your functions.php
* AUTHOR: wp-types.com
*/
add_action('wp_loaded','mass_update_date_fields_typesfunc');
function mass_update_date_fields_typesfunc() {
//Make sure $types_field_name is the exact field name as saved in database.
$types_field_name_in_db='wpcf-data-ogloszenia';
You can’t perform that action at this time.