XMB::callback_topic_status( int $status = '' )
Translate the post status from XMB v1.9.11.13 numeric’s to WordPress’s strings.
Description
Parameters
- $status
-
(Optional) XMB v1.9.11.13 numeric topic status
Default value: ''
Return
(string) WordPress safe
Source
File: bp-forums/admin/converters/XMB.php
public function callback_topic_status( $status = '' ) { switch ( $status ) { case 'yes' : $status = 'closed'; break; case '' : default : $status = 'publish'; break; } return $status; }
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.