In what scenarios would this be useful??
Are you talking about a support status??
If it is not for a topic supports status, this could be custom development.
Yes for support ticket status. I’ve looked at some of the support forum plugins but they don’t offer this. Seems relatively simple to me…
Maybe tags could be utilised as a set dropdown option?
It is possible to add custom statuses with this plugin.
https://wordpress.org/plugins/buddy-bbpress-support-topic/
Here is an example gist file.
https://gist.github.com/imath/9e69b8139ff6f7a4120a
Here is example for Urgent.
function your_custom_status( $allstatus = array() ) {
$allstatus['topic-working-on-it'] = array(
'sb-caption' => __( 'Urgent', 'buddy-bbpress-support-topic' ),
'value' => 3,
'prefix-title' => __( '[Urgent] ', 'buddy-bbpress-support-topic' ),
'admin_class' => 'urgent',
'dashicon' => array( 'class' => 'bpbbpst-dashicons-warning', 'content' => '"\f534"' ),
);
return $allstatus;
}
add_filter( 'bpbbpst_get_support_status', 'your_custom_status', 10, 1 );
Great. thanks for this.
I tried adding the code to my functions.php file but it didnt work. Do I need to do something special with it?
Sorry figured it out 🙂
Nope its still not showing an option when I go to write a new post….
Just to clarify I want the user to be able to set the status on the front end when they are posting a new topic.
That code worked but only lets me do it from the back end