Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Add a custom support status to Buddy-bbPress Support topic.
<?php
/**
* Filter the available status to add a custom one
*
* Requires buddy-bbpress-support topic plugin
* bbPress 2.5+
* WordPress 4.0
*
* @param array $allstatus the available status
* @return array the available status and your custom one
*/
function your_custom_status( $allstatus = array() ) {
$allstatus['topic-working-on-it'] = array(
'sb-caption' => __( 'Working on it', 'buddy-bbpress-support-topic' ),
'value' => 3,
'prefix-title' => __( '[Working on it] ', 'buddy-bbpress-support-topic' ),
'admin_class' => 'waiting',
'dashicon' => array( 'class' => 'bpbbpst-dashicon-hammer', 'content' => '"\f308"' ),
);
return $allstatus;
}
add_filter( 'bpbbpst_get_support_status', 'your_custom_status', 10, 1 );
@andrevanberlo

This comment has been minimized.

Copy link

@andrevanberlo andrevanberlo commented Jul 9, 2015

Hi,
I tried to put this into a plugin but got this as a message when uploading it to wordpress "The package could not be installed. PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature"

do you have an idea what went wrong?

Thanks,

André

@andrevanberlo

This comment has been minimized.

Copy link

@andrevanberlo andrevanberlo commented Jul 10, 2015

Sorry, I figured it out. I forgot to wrap it into a zip format...

@LehtinenRiku

This comment has been minimized.

Copy link

@LehtinenRiku LehtinenRiku commented Apr 17, 2016

How to remove [ -characters from every statuses? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment