bbPress1::callback_forum_type( int $status )

Translate the forum type from bbPress 1.x numerics to WordPress’s strings.


Description Description


Parameters Parameters

$status

(Required) bbPress 1.x numeric forum type


Top ↑

Return Return

(string) WordPress safe


Top ↑

Source Source

File: includes/admin/converters/bbPress1.php

	public function callback_forum_type( $status = 0 ) {
		if ( $status == 1 ) {
			$status = 'category';
		} else {
			$status = 'forum';
		}
		return $status;
	}

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.