Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Init hook runs every second

Discussion in 'Misc WordPress Requests' started by cschmitt, Nov 25, 2017.

  1. cschmitt


    Init hook runs every second, by cschmitt


    this might be a stupid question, but I couldn’t find an answer to it. So here goes…

    I have this plugin that writes its actions to a log file.
    The way it’s initialized is by having this line in it:

    * initialize the plugin
    add_action( 'init', 'my_plugin_init' );

    In function my_plugin_init() there’s one call to a function that
    writes into the logfile.

    Now in the log there’s an entry every second, although there’s no traffic on the site.
    Is this normal? Or is there something completely wrong that generates a lot of
    load on my server?

    Sorry if this has been answered dozens of time but I just couldn’t find it


    Init hook runs every second

Share This Page

Monarch Social Sharing Plugin