Kunena1::callback_forum_status( int $status )

Translate the forum status from Kunena v1.x numerics to WordPress’s strings.


Description Description


Parameters Parameters

$status

(Required) Kunena v1.x numeric forum status


Top ↑

Return Return

(string) WordPress safe


Top ↑

Source Source

File: includes/admin/converters/Kunena1.php

490
491
492
493
494
495
496
497
498
499
500
501
502
public function callback_forum_status( $status = 0 ) {
    switch ( $status ) {
        case 1 :
            $status = 'closed';
            break;
 
        case 0  :
        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.