0

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)

0

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.

  • 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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