Skip to:
Content

BuddyPress.org

Ticket #662: hook-pre-save-wire-post.diff

File hook-pre-save-wire-post.diff, 428 bytes (added by nicolagreco, 16 years ago)
  • .

     
    102102               
    103103        $message = strip_tags( $message, $allowed_tags );
    104104        $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
    106109        if ( !$wire_post->save() )
    107110                return false;
    108111