WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am newbie in wordpress. I have just created contact us plugin for my own project.

In my plugin I have used many functions you can take a look of my code.

I want to make this plugin based on custom hooks instead of only PHP functions. I don't want simple plain php functions.

Can you suggest me where can I add custom hooks and how to use it?

I know how to add custom hooks and use it i have referred this document.. so I am clear with hooks (how to create it and use it)

share|improve this question
up vote 0 down vote accepted

Where to put hooks will depend on each project. However, some basic places to think about:

  • Shortcodes
  • Querying posts
  • Extending markup

I would recommend the article Writing Extensible Plugins With Actions and Filters. It may help you to expand your ideas.

share|improve this answer
thanks this article really helpful for me... – user41362 Nov 5 '13 at 11:45
Glad to help. If I answered your question, don't forget to accept the answer :-) – Daniel Nov 5 '13 at 11:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.