Support » Plugin: Login LockDown » No activation on Windows – Solved

  • Your plugin works great, but it doesn’t activate correctly in Windows. The problem is in this line:

    $activatestr = str_replace(WP_PLUGIN_DIR . “/”, “activate_”, __FILE__);

    The str_replace doesn’t work because __FILE__ contains backlashes.
    You should replace this line with:

    $activatestr = “activate_” . plugin_basename(__FILE__);

  • The topic ‘No activation on Windows – Solved’ is closed to new replies.