XenForo::callback_forum_status( int $status = 1 )

Translate the forum status from XenForo numerics to WordPress’s strings.


Description Description


Parameters Parameters

$status

(Optional) XenForo numeric forum status

Default value: 1


Top ↑

Return Return

(string) WordPress safe


Top ↑

Source Source

File: includes/admin/converters/XenForo.php

734
735
736
737
738
739
740
741
742
743
744
745
746
public function callback_forum_status( $status = 1 ) {
    switch ( $status ) {
        case 0 :
            $status = 'closed';
            break;
 
        case 1 :
        default :
            $status = 'open';
            break;
    }
    return $status;
}

Top ↑

User Contributed Notes User Contributed Notes

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