SupportCategory: Wordpress PluginsHook transplant
gmmwh asked 7 years ago

Hello,
 
Is it possible to overide the hook where the menu is attached to :
add_action(‘wp_footer’, array( $this, ‘eds_responsive_menu’ ), 90);
 
Would love to know if it is possible to transplant it without having to edit the plugin file (which I cant do if its to be updated).
 
Thanks
George

eDataStyle Staff replied 7 years ago

Yes it’s possible to do 🙂

eDataStyle Staff replied 7 years ago

Yes it’s possible to do 🙂

4 Answers
gmmwh answered 7 years ago

Thank you very much for the prompt reply.
 
In view of this I purchased a licence for the menu and would really appreciate if you could help me out on how to move it to a diferent hook 🙂
 
Thanks again.
George

eDataStyle Staff replied 7 years ago

HI
Go file ( inc/eds_menu_frontend.php ) and see link .. please off the link ….
Then you can create new hook as you want ..

Thanks

eDataStyle Staff replied 7 years ago

HI
Go file ( inc/eds_menu_frontend.php ) and see link .. please off the link ….
Then you can create new hook as you want ..

Thanks

gmmwh answered 7 years ago

Hi again,

I am very sorry to come back again, but I am not sure I understand what you mean by link ? I cant see what you are refering to, could please point me to the specific line in the file ?
 
I can see the actions on top where it is hooked to wp-footer and I could change that – but the idea is not to touch the actual files, I was wondering if there was a way to transplant it maybe through my theme’s functions ?
 
Thanks again and please excude my ignorance I am fairly new to wordpress.
George

eDataStyle Staff replied 7 years ago

HI
No worries, file name eds_menu_frontend.php and see ( add_action(‘wp_footer’, array( $this, ‘eds_responsive_menu’ ), 90); )

Just turn off and create new as you want ….

for more details please add me skype ( e2getway )

thanks

gmmwh answered 7 years ago

Hello again
 
Thanks, I had figured out that actually, but was wondering if there was a way to do it without touching the plugin files, as it would be overwritten if there was an update. The main reason I wanted to do this was to be able to use absolute positioning relevant to my header – so I was going to create a new hook to add the menu to the header, instead of the wp_footer.  Could always do in the file I guess and make sure to redo the change in case of an update.
Reading up on WordPress a bit I saw there is the possibility to remove an action (remove_action) and add it anew from my themes function file but I cant figure out the parameters to get to work (if its even doable – not sure).
Thank you again
George

eDataStyle Staff replied 7 years ago

Sorry right now have no options with touching the file … it’s was simply plugins that’s why we are not using dynamic action or filter hook ,,,

kabaliraa answered 7 years ago

i installed theme into kabaliraa.com when i try to access my wordpress admin page http://www.kabaliraa.com/wp-admin Fatal error: Can’t use function return value in write context in /home/rakesh123kabali/public_html/wp-content/themes/edsbootstrap/inc/wp-admin/edsbootstrap-admin-page.php on line 136

gmmwh replied 7 years ago

Hi, I think you may need to open a new question as you posted as an answer to my question 🙂

eDataStyle Staff replied 7 years ago

sure ! let’s open a new !

eDataStyle Staff replied 7 years ago

sure ! let’s open a new !

kabaliraa replied 7 years ago

ok, thanks I removed that theme, paid money to developer