Support

Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
All Topics
Dimitry

Piklist custom statuses don’t show up in status column editor

hello,
I am using piklist to define custom statuses as follows:

,'status' => array(
'draft' => array(
'label' => 'Draft'
,'public' => true
)
,'active' => array(
'label' => 'Active'
,'public' => true
,'exclude_from_search' => false
,'show_in_admin_all_list' => true
,'show_in_admin_status_list' => true
)
,'past' => array(
'label' => 'Past'
,'public' => true
,'exclude_from_search' => false
,'show_in_admin_all_list' => true
,'show_in_admin_status_list' => true
)
,'discontinued' => array(
'label' => 'Discontinued'
,'public' => true
,'exclude_from_search' => false
,'show_in_admin_all_list' => true
,'show_in_admin_status_list' => true
)
)

This works as expected in the editor view; in the list/index view the current custom status does appear BUT when I attempt to change the status via inline editing it shows standard WordPress status array only: draft, pending review,private,published, trash.

Much appreciated,
Dimitry

5 years, 6 months ago
Stefan
Developer

Hi Dimitry,

We have to figure out why custom statuses are not shown in the edit dropdown.
I’ve created a ticket for this ( https://github.com/codepress/admin-columns-issues/issues/464 ) and we will try to make a fix for the 3.9 release.

In the meantime you can change the dropdown options yourself by use the filter ‘cac/editable/options’.
You can populate the dropdown with your own options or add only the custom status by doing something like this:

function cac_change_edit_options( $editable, $column ) {

	if ( 'column-status' == $column['type'] ) {
		$editable['options'][] = array( 'label' => 'Discontinued', 'value' => 'discontinued' );
		$editable['options'][] = array( 'label' => 'Past', 'value' => 'past' );
	}

	return $editable;
}

add_filter( 'cac/editable/options', 'cac_change_edit_options', 10, 2 );
5 years, 6 months ago
Stefan
Developer

Hi Dimitry,

This problem should be fixed in 3.8.4.1
I tried it myself with Piklist and all statuses were visible.
Can you also check if this works for you?

5 years, 4 months ago

You must be logged in to reply to this topic.