Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Good day, I'm trying to reduce the jquery dom manipulations by including the right plugin functions in my theme's functions.php file. For example, I have a link which triggers a jquery dialog, which in turn holds the custom contact widget, another one which triggers a jquery dialog which holds a contact widget and so on and so forth.

All those dom manipulations have a severe impact performance-wise, so is there any way I can include the plugin's constructor in the divs which are converted to jquery dialogs?

share|improve this question
Can you add a little code? I'm not sure I understand what you are saying. You want to include a plugin's PHP functions in the functions.php? – Tomás Cot Aug 12 '14 at 21:45

1 Answer 1

You can just copy and paste the function from your plugin to your functions.php file. But I don't think you'll have the possibility of moving functions like register_activation_hook to your functions.php file.

I strongly advise you to test it on a local copy of your website first.

share|improve this answer
I never wanted to push untested features to the production site anyway. Thanks for the quick answer, I'll try and see how it plays out. – Adi Oporanu Jul 31 '12 at 5:08

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.