Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save xlplugins/5228a8bb7ef4d1c304d88edf5a6c523a to your computer and use it in GitHub Desktop.
Save xlplugins/5228a8bb7ef4d1c304d88edf5a6c523a to your computer and use it in GitHub Desktop.
Register New Date Advanced field type in the rest API
add_filter('wfacp_register_advanced_field_types',function($fields_types){
$fields_types[]=[
'label' => __( 'Date', 'woofunnels-aero-checkout' ),
'value' => 'wfacp_date',
'key' => 'wfacp_date',
];
return $fields_types;
},999);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment