Ticket #662: hook-pre-save-wire-post.diff
File hook-pre-save-wire-post.diff, 428 bytes (added by , 16 years ago) |
---|
-
.
102 102 103 103 $message = strip_tags( $message, $allowed_tags ); 104 104 $wire_post->content = $message; 105 105 106 // Hook for plugins to manage the content of the wire post before it's saved 107 do_action( 'bp_wire_post_pre_save', $wire_post->content ); 108 106 109 if ( !$wire_post->save() ) 107 110 return false; 108 111