WordPress.org

Ready to get started?Download WordPress

Forums

What if there is no hook for your plugin? (1 post)

  1. trivum
    Member
    Posted 3 years ago #

    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.

    http://wordpress.stackexchange.com/questions/4439/can-i-prevent-wp-users-even-admin-from-deleting-custom-categories/4445#4445

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags