jjgrainger / PostTypes

Simple WordPress custom post types.
https://posttypes.jjgrainger.co.uk/
MIT License
373 stars 47 forks source link

CPT Slug Pluralization #71

Closed lapubell closed 2 years ago

lapubell commented 3 years ago

When creating a new CPT, if the name ends in Y then we get bad grammer in the post archive permalink.

Example: CPT Name: "facility"

$f = new PostType('facility');

Now, when visiting the post archive, the permalink says /facilitys instead of /facilities.