bbPress1::callback_status( int $status )
Translate the post status from Forums 1’s numeric’s to WordPress’s strings.
Description
Parameters
- $status
-
(int) (Required) Forums 1.x numeric post status
Return
(string) WordPress safe
Source
File: bp-forums/admin/converters/bbPress1.php
public function callback_status( $status = 0 ) { switch ( $status ) { case 2 : $status = 'spam'; // bbp_get_spam_status_id() break; case 1 : $status = 'trash'; // bbp_get_trash_status_id() break; case 0 : default : $status = 'publish'; // bbp_get_public_status_id() 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.