bbp_edit_reply_pre_set_terms

  • apply_filters( 'bbp_edit_reply_pre_set_terms', $terms, $topic_id, $reply_id )

    Source Reference:

    • Component: bbPress :: bbp-reply
      File: /bbp-includes/bbp-reply-functions.php :: Trac Source Line: 488
      		// 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
      		$terms = wp_set_post_terms( $topic_id, $terms, bbp_get_topic_tag_tax_id(), false );
      
      		// Term error
      		if ( is_wp_error( $terms ) ) {
      			bbp_add_error( 'bbp_reply_tags', __( '<strong>ERROR</strong>: There was a problem adding the tags to the topic.', 'bbpress' ) );
      		}
      
      		/** Revisions *********************************************************/
      

Comments are closed.