Title: Hook problem
Last modified: May 24, 2019

---

# Hook problem

 *  Resolved [dewinbrush](https://wordpress.org/support/users/dewinbrush/)
 * (@dewinbrush)
 * [7 years ago](https://wordpress.org/support/topic/hook-problem/)
 * Hello, This plugins works perfectly when posts are published manually. However
   Fetching Feeds from API, RSS, XML what else, If cron is working at background,
   This plugin can not Hook process, All Posts are fetched and sending to db, Category
   etc everything is correct, however each post only getting this plugin Rules when
   manually updating. after than PM is creating rules.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Maciej Bis](https://wordpress.org/support/users/mbis/)
 * (@mbis)
 * [7 years ago](https://wordpress.org/support/topic/hook-problem/#post-11568420)
 * Hi [@dewinbrush](https://wordpress.org/support/users/dewinbrush/),
 * in the very beginning the custom permalinks were defined anytime “wp_insert_post”
   or “save_post” hooks were triggered. Unfortunately it was breaking and overwriting
   the custom URIs used by another 3rd party plugins. Therefore I had to optimize
   it and disable the functions that are generating the custom permalinks if they
   are triggered outside admin dashboard.
 * Anyway, you can use the following snippet to always generate the custom URI for
   new posts/pages/CPT items:
    [https://pastebin.com/YrpTNh1R](https://pastebin.com/YrpTNh1R)
 * Best regards,
    Maciej

Viewing 1 replies (of 1 total)

The topic ‘Hook problem’ is closed to new replies.

 * ![](https://ps.w.org/permalink-manager/assets/icon.svg?rev=2625166)
 * [Permalink Manager Lite](https://wordpress.org/plugins/permalink-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/permalink-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/permalink-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/permalink-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/permalink-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/permalink-manager/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Maciej Bis](https://wordpress.org/support/users/mbis/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/hook-problem/#post-11568420)
 * Status: resolved