Add custom hook to wordpress