Support » Plugins » What if there is no hook for your plugin?

  • I have someone making a custom plugin for me. It involves comments. He says there is no hook for the plugin, so I need to hack the core code and insert some PHP in order to get the plugin working.

    As this person is new to WordPress and might not know, I was wondering if there is a way to do this without hacking the core code.

    While searching for a solution, I found the following online. It seems this person was able to do it for his situation, but I don’t know if it would work in all situations.

    It is not possible to add the enctype into the form declaration via WordPress as there is no hook or action to do this. So the only alternative (rather than hack the source code) is to add the attribute using JavaScript, and as we have JQuery already loaded we can utilise that.

  • The topic ‘What if there is no hook for your plugin?’ is closed to new replies.