• Resolved ploz

    (@ploz)


    Hi,
    I tried the Regenerate/Reset function to regenerate the native slugs but it doesn’t seem to affect the scheduled posts. How can I regenerate all the native slugs, scheduled posts included? Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Maciej Bis

    (@mbis)

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to regenerate native slugs for scheduled posts?’ is closed to new replies.