phpBB::callback_forum_type( int $status = 1 )

Translate the forum type from phpBB v3.x numerics to WordPress’s strings.


Description Description


Parameters Parameters

$status

(Optional) phpBB v3.x numeric forum type

Default value: 1


Top ↑

Return Return

(string) WordPress safe


Top ↑

Source Source

File: includes/admin/converters/phpBB.php

	public function callback_forum_type( $status = 1 ) {
		switch ( $status ) {
			case 0 :
				$status = 'category';
				break;

			case 1  :
			default :
				$status = 'forum';
				break;
		}
		return $status;
	}

Top ↑

User Contributed Notes User Contributed Notes

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