[wp-hackers] Post Slug Keyword Filter?

Brian Fegter brian at fegter.com
Thu May 12 19:01:55 UTC 2011


I'm running into an issue with an an ecomm plugin uses custom rewrites to
display the shopping cart. This plugin allows me to set the slug for the
shopping cart in the settings page. However, it was redirecting to a post
with a form of 'cart' in the slug even though my setting slug was
'checkout'. The post in question had the word cartoon included in the slug.

I fixed this by renaming the cart% slugs to another name. I was wondering if
there was a way to filter the slug when it's saved. I see that
http://codex.wordpress.org/Plugin_API/Filter_Reference/editable_slug uses
the sample slug function. I was wondering if there was a way to filter the
final slug whenever a user saves a slug.

Thanks for any help you can give!
Brian


More information about the wp-hackers mailing list