[buddypress-trac] [BuddyPress] #3044: bp-xprofile Add Hook before saving xprofile field data

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Sat Feb 5 10:20:18 UTC 2011

#3044: bp-xprofile Add Hook before saving xprofile field data
  Reporter:  marinig      |      Owner:
      Type:  enhancement  |     Status:  new
  Priority:  normal       |  Milestone:  Awaiting Review
 Component:  XProfile     |    Version:
Resolution:               |   Keywords:

Comment (by marinig):

 Ok, I made some test using the xprofile_data_before_save hook and
 discovered some useful OOP characteristics and so I solved my problems,
 thankyou very much DJPaul.

 Just a final note:
 I noticed that the $this->id passed to every filter in the
 BP_XProfile_ProfileData::save() method is always empty...

 This is what I did to find out:

 $log = fopen( $_SERVER['DOCUMENT_ROOT'].'/log.txt', a );
 fwrite($log, print_r($this, true));

 The log.txt file shows that the "id" of the object is empty.
 I don't know if this is normal, if it's just a problem on my installation
 or whatever...


Ticket URL: <https://trac.buddypress.org/ticket/3044#comment:4>
BuddyPress <http://buddypress.org/>

More information about the buddypress-trac mailing list