Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Custom Field doesn’t work with bbpress 2.6 and above

@track77

Participant

In any case thanks for your time!
Hope developers will fix this bug soon.

Currently, this bug can be fixed using the code below.
Also, Replies box should be moved below Custom Fields

/* Fix BBpress 2.6 bug with Custom Fields */
if( function_exists( 'bbp_get_version' ) && version_compare( bbp_get_version(), '2.5' ) > 0 ) {
	add_action( 'wp_ajax_add-reply', 'wp_ajax_add_fix_bbpress_26');
	function wp_ajax_add_fix_bbpress_26() {
		// print_error_log( $_POST );
	//	$_POST['action'] = 'add-meta';
		wp_ajax_add_meta();
	}

	add_action( 'wp_ajax_delete-reply', 'wp_ajax_delete_fix_bbpress_26');
	function wp_ajax_delete_fix_bbpress_26() {
		// print_error_log( $_POST );
		wp_ajax_delete_meta();
	}

	add_action( 'add_meta_boxes', 'bbpress_26_fix_add_meta_boxes', 25 );
	function bbpress_26_fix_add_meta_boxes() {
		do_action( 'bbp_topic_attributes_metabox' );
	}
}
Skip to toolbar