bbp_edit_reply_pre_insert

  • apply_filters( 'bbp_edit_reply_pre_insert', $reply_data )

    Source Reference:

    • Component: bbPress :: bbp-reply
      File: /bbp-includes/bbp-reply-functions.php :: Trac Source Line: 480
      		// Add the content of the form to $post as an array
      		$reply_data = array(
      			'ID'           => $reply_id,
      			'post_title'   => $reply_title,
      			'post_content' => $reply_content
      		);
      
      		// Just in time manipulation of reply data before being edited
      		$reply_data = apply_filters( 'bbp_edit_reply_pre_insert', $reply_data );
      
      		// Insert reply
      		$reply_id = wp_update_post( $reply_data );
      
      		/** Topic Tags ****************************************************/
      
      		// Just in time manipulation of reply terms before being edited
      		$terms = apply_filters( 'bbp_edit_reply_pre_set_terms', $terms, $topic_id, $reply_id );
      
      		// Insert terms
      

Comments are closed.