WordPress.org

Ready to get started?Download WordPress

Forums

See what plugins add to wp_footer (2 posts)

  1. AryanK
    Member
    Posted 1 year ago #

    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

  2. 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.

Topic Closed

This topic has been closed to new replies.

About this Topic