[ad_1]
Hi @ploz,
By default, Permalink Manager only works with the post statuses that are returned by the get_post_statuses() function. However, using the code snippet below, you can easily add support for future posts.
function pm_additional_post_statuses($post_statuses) {
if(is_array($post_statuses)) {
$post_statuses['expired'] = 'Expired';
$post_statuses['future'] = 'Scheduled';
}
return $post_statuses;
}
add_filter('permalink_manager_post_statuses', 'pm_additional_post_statuses');
Thread Starter
ploz
(@ploz)
Thank you, that was really helpful.
