Skip to content

wpup/cleanify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Cleanify

No Maintenance Intended

Requires PHP 5.4

Simple WordPress plugin to remove slug from custom post types permalinks.

Install

composer require frozzare/cleanify

Example

Before: http://example.com/photograph/random-name

After: http://example.com/random-name

add_filter( 'cleanify/cpts', function () {
  return 'photograph';
} );

Filters

cleanify/cpts

Return all post types where the slug should be removed. Should be a string or array of strings.

License

MIT © Fredrik Forsmo

About

Remove slug from custom post types permalinks

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages