[buddypress-trac] [BuddyPress Trac] #7941: Buddy press action hook for BP message reply
buddypress-trac
noreply at wordpress.org
Wed Aug 1 18:49:35 UTC 2018
#7941: Buddy press action hook for BP message reply
----------------------------------+-----------------------------
Reporter: rgipp1 | Owner: johnjamesjacoby
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: BuddyPress.org Sites | Version: 3.0.0
Severity: normal | Keywords:
----------------------------------+-----------------------------
I'm looking to take action when any BP message is replied to.
I read thru the BuddyPress Actions Hooks document and tried many of the BP
action hooks with no success.
Here's an example of my code in a plugin I created (below).
I test it by replying to a message in BuddyPress.
I'm not getting the function to execute since the file isn't getting
created.
function test_message_meta_display() {
$myfile = fopen("deletethreadsinfunction.txt", "w") or die("Unable to open
file!");
$txt = "threadID, userID = " . $threadID . " " . $userID .
"\n";
fwrite($myfile, $txt);
}
add_action( 'bp_after_message_content', 'test_message_meta_display', 10, 0
);
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7941>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list