Last active
March 13, 2024 08:20
-
-
Save xlplugins/5228a8bb7ef4d1c304d88edf5a6c523a to your computer and use it in GitHub Desktop.
Register New Date Advanced field type in the rest API
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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