messages – send reply – custom form field
-
BP – Version 1.2.7
WP – version = 3.0.4I’ve added a checkbox to Message->Compose
and to Message -> Send ReplyThen in bp-custom, I check the value of that checkbox and adjust the message if checked.
add_action( 'messages_message_before_save', 'my_function' ); function my_function( $message_info ) { if( $_POST == 1) { $message_info->message .= " Some additional info."; } }
This works great for messages sent from Compose.
But if sent as a response in a thread ie. ‘Send Reply’
the value of $_POST is not found.How can I read a custom $_POST field when submitted from Send Reply ?
- The topic ‘messages – send reply – custom form field’ is closed to new replies.