Top "Hook" questions

A hook refers to replacing or extending a system or application's default behavior with a custom behavior for a specific event.

How to set dynamic `home` and `siteurl` in WordPress?

I config the multi-language setting dynamically using the locale filter. Which fetch the sub-domain name to determine the language. function …

php wordpress hook
C++ SetWindowsHookEx WH_KEYBOARD_LL Correct Setup

I'm creating a console application in which I'd like to record key presses (like the UP ARROW). I've created a …

c++ key capture hook setwindowshookex
How to create a trampoline function for hook

I'm interested in hooking and I decided to see if I could hook some functions. I wasn't interested in using …

c++ winapi hook tramp trampolines
Javascript function hooks

EDIT: OK, I believe the following solutions are valid: Use the jQuery AOP plugin. It basically wraps the old function …

javascript aop hook
How to use ZwQueryInformationProcess to get ProcessImageFileName in a kernel driver?

I'm writing a simple kernel driver for my application (think of a very simple anti-malware application.) I've hooked ZwOpenFile() and …

c++ hook driver wdk
WordPress hook after adding/updating post AND after insertion of post meta?

I have a custom post type called "videos", which also has a few custom fields defined. Upon creating or updating …

wordpress hook custom-post-type
Can I run a script when I commit to subversion?

I'd like to run a script that builds the documentation for my php project. It is basically just using wget …

svn hook phpdoc
What is the difference between hook and callback?

By reading some text, especially the iOS document about delegate, all the protocol method are called hook that the custom …

callback hook
How to hook system calls of my android app (non rooted device)

I am trying to intercept all system calls made by my Android app on a non rooted device. So every …

android hook system-calls function-interposition library-interposition
svn update not working in post commit

I am trying to implement a post-commit hook to update a working copy. As far as i can figure out …

svn hook post-commit