[+] Add support for custom statuses when displaying edit post links

Links to edit post with Forms will normally only appear when the post in question has a standard post status.

You can filter the array of statuses supported by the edit post links like so:

add_filter( 'toolset_filter_edit_post_link_extra_statuses_allowed', 'ts_edit_link_statuses' );
function ts_edit_link_statuses( $stati ){

	$stati[] = 'special';
	return $stati;
}

In this example, a custom post status of “special” is added so that links to edit the post with a Toolset Form will appear on the front end.


Let us know if this snippet is not working for you:

This snippet doesn’t work
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments