Hook Publish Post
-
Hi!
I’m relative new to wordpress and have currently hit a roadblock.
What I’m trying to do:
- filter the content when someone is trying to publish/update a post
- search for a <!–more–> tag
- insert the tag if not found
This is quite done. My problem lies in the hook for the publish button. I tried with adding a filter to
wp_insert_post
, but I doubt I really understand how hooks work. Even after reading the codex information on them.Can someone please tell me in detail (or in general depending on your free time) how to add a filter/action to the “Publish Post/Update Post” button?
Regards,
Hampus
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Hook Publish Post’ is closed to new replies.