Several times request to load plugins when sending one request

That might well be, but that’s alright. There might be redirects happening, and those will result in multiple requests. The WordPress-Cron System relies on AJAX-requests, those will also show up in the log. If you load any resources (images, scripts, stylesheets) that do not exist, WordPress will be loaded and handle the 404, resulting in … Read more

Debug log file with rolling datestamp in filename?

Well, yes – there is such way. And you even have the solution already in your code… Even more – you almost solved it yourself… This line decides, where the log will be located: @ini_set( ‘error_log’, dirname(__FILE__) . ‘/wp-content/debug.log’ ); So all you need is to add date in that file name. Like this: @ini_set( … Read more

Log Author Actions

There is a plugin called Audit Trail. It will pretty much log all actions for your wordpress backend such as page creation / deletion, post creation / deletion, logging in / logging out. You can find it here: http://wordpress.org/extend/plugins/audit-trail/

I restricted wordpress by logged users. It’s possible exclude a page?

I wanted to restrict my website except a specific page. This is my solution: function restrict_access_if_logged_out(){ global $wp; if (!is_user_logged_in() && !is_home() && ($wp->query_vars[‘pagename’] != ‘name-of-page’) ){ $redirect = home_url() . ‘/wp-login.php?redirect_to=’ . esc_url($_SERVER[“HTTP_HOST”] . urlencode($_SERVER[“REQUEST_URI”])); wp_redirect( $redirect ); exit; } } Only I added this: && ($wp->query_vars[‘pagename’] != ‘name-of-page’) in IF clause and a … Read more

Same log message keeps on printing to debug.log file thousand of times

OK, as far as I understand, you’ve put this code: $debug_log = “DEBUG-debug log”; trigger_error($debug_log); //OR error_log($debug_log); directly in your functionsphp` file. It means, that this code will be executed (so new log item will be added to log file) every time the functions.php file is loaded – so during every request to your WP. … Read more