Support » Plugin: Custom Permalinks » Filter/Hook fort automatically create custom permalinks

  • Resolved mattce

    (@mattce)


    Hi Sami,
    I would like to know if there is a filter/hook which allows me to create custom permalinks directly on/after post save.

    My case:
    I’ve created a new post type “receipts” and wordpress automatically adds the post-type slug “receipts” to every new post (and I think there is no way to prevent this, all solutions, I’ve tried, lead to 404 for normal posts/pages then).

    But instead I would like to use a permalink like

    domain.cno/receipt-slug (instead of domain.cno/receipts/receipt-slug/)

    Currently, it’s possible, if I create the post normally and then edit the slug manually with your plugin activated. But it would be great, if there would be a filter/hook, that this “new” custom permalinks gets created automatically on post save, without needing to edit it in the permalink field afterwards by hand.

    Is there an opportunity to achieve this?

    Thanks a lot!

    • This topic was modified 1 year, 3 months ago by mattce.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Filter/Hook fort automatically create custom permalinks’ is closed to new replies.