Write/saved logs in WordPress

I’d recommend doing large bulk updates to the database like big imports or exports outside of the WordPress codebase as much as possible because of issues like this, but only if this makes sense for your code and you’re able to maintain the wordpress data structures If the logging information is just to see what … Read more

How to hook into action/filter call

The callbacks hooked onto ‘all’ are called prior to the callbacks for any hook (action and filters) being called. (See source) add_action( ‘all’, ‘wpse115617_all_hooks’ ); function wpse115617_all_hooks(){ //This is called for every filter & action //You can get the current hook to which it belongs with: $hook = current_filter(); } See http://queryposts.com/function/current_filter/

Make a Docker application write to stdout

An amazing recipe is given in the nginx Dockerfile: # forward request and error logs to docker log collector RUN ln -sf /dev/stdout /var/log/nginx/access.log \ && ln -sf /dev/stderr /var/log/nginx/error.log Simply, the app can continue writing to it as a file, but as a result the lines will go to stdout & stderr!

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)