XenForo::callback_forum_type( int $status = 1 )

Translate the forum type from XenForo Capitalised case to WordPress’s non-capatilise case strings.


Description Description


Parameters Parameters

$status

(Optional) XenForo numeric forum type

Default value: 1


Top ↑

Return Return

(string) WordPress safe


Top ↑

Source Source

File: includes/admin/converters/XenForo.php

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

			case 'Forum' :
			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.