Mingle::callback_sticky_status( int $status )
Translate the topic sticky status type from Mingle numeric’s to WordPress’s strings.
Description
Parameters
- $status
-
(Required) Mingle numeric forum type
Return
(string) WordPress safe
Source
File: bp-forums/admin/converters/Mingle.php
458 459 460 461 462 463 464 465 466 467 468 469 470 | public function callback_sticky_status( $status = 0 ) { switch ( $status ) { case 'sticky' : $status = 'sticky' ; // Mingle Sticky 'status = sticky' break ; case 'open' : default : $status = 'normal' ; // Mingle Normal Topic 'status = open' 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.