[buddypress-trac] [BuddyPress Trac] #8743: xprofile_set_field_data it's not working on "Date selector"

buddypress-trac noreply at wordpress.org
Thu Sep 29 15:04:03 UTC 2022


#8743: xprofile_set_field_data it's not working on "Date selector"
--------------------------+-----------------------------
 Reporter:  marioshtika   |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Core          |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 Hello,

 I am setting some field data programmatically using the
 `xprofile_set_field_data` function, as shown below.


 `xprofile_set_field_data(5, 21, '2017-12-03 07:53:00');`

 It is working fine when the field is set as a text box.
 But If I change the field type to Date Selector, it is not saving it and
 it's returning false.

 Is this a bug in there, or am I doing something wrong?

 I didn't find any documentation that I have to use
 `xprofile_set_field_data` differently according to its type.

 Thank you in advance

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8743>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list