• Hey

    Normally when I want to check out codes that plugins add to wp_footer, I search their files for “footer” and some related keywords, but today I failed to find results in a certain plugin (quick chat). Is there a smarter way to find what each plugin adds to wp_footer? I’m trying to take out certain bits of the plugin to work on a custom php page, so that’s why I’m looking for this.

    Thanks,
    Arian

Viewing 1 replies (of 1 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Is there a smarter way to find what each plugin adds to wp_footer?

    There is probably a much easier or even better way to do this but if you have shell access to you web server try these commands.

    cd wp-content/plugins
    find . | xargs -I{} egrep -Hn "add_action.*wp_footer" {} 2>/dev/null | cut -d':' -f1,2

    That should give you the file names and line numbers of which plugins add to the footer via add_action('wp_footer', 'your_function');

    Once you know where the code is then you can look and attempt to figure out what is being added via wp_footer.

Viewing 1 replies (of 1 total)
  • The topic ‘See what plugins add to wp_footer’ is closed to new replies.