frozzare/cleanify

Remove slug from custom post types permalinks

Installs: 17

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 2

Forks: 0

Type:wordpress-plugin

v1.0.0 2015-04-10 12:37 UTC

This package is auto-updated.

Last update: 2024-03-29 03:19:07 UTC


README

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