get_slug() == get_query_var( 'category_name' ) ) ) ) { $cat->slug = $this->get_slug(); } return $cat; } /** * Get "all" Slug * * @return string Slug to replace the %category% placeholder if no category. */ private function get_slug() { return sanitize_html_class( apply_filters( 'all_category_post_permalink_slug', 'all' ) ); } } new All_Category_Post_Permalink();