Deleting emails older than 2 years
to view:
find /home/*/mail/*/*/cur -mtime +729 -type f -ls
to delete:
find /home/*/mail/*/*/cur -mtime +729 -type f -delete
Queries are only available after “wp” action hook, so ‘init’ is too early to check for it.
Bir wordpress geleneği “başımıza iş çıkartma”.. 3.7 ile birlikte arkaplanda otomatik güncelleştirmeler eklendi. Günlük blogger için güvenlik açısından kullanışlı özellik olsa da çoğunluk için unutulduğu takdirde başa bela olacaktır. Yeni sürümle değişien core fonksiyonlar, çalışmayan tema & eklentiler, sağda solda hatalar, hatta belkide tamamen sitenin çökmesine sebep olabilir. Arkaplan güncelleştirmelerini kapatmak için wp-config’e eklemeyi unutmamak…
There are various ways to get user_ID in WP. But which one is the fastest ? I’ve compared 3 ways function get_uid_from_global() { global $current_user; return $current_user->ID; } function get_uid_by_gcuid() { return get_current_user_id(); } function get_uid_by_wpgcu_id() { return wp_get_current_user()->ID; } Without a doubt, global method was fastest. With multiple 100,000 runs, global method took 0.9~…
The story: I was getting session file write errors (write failed: No space left on device (28) ) in wp admin, i checked /tmp folder but it was not full, only 60% percent was used. So not being able to pinpoint what the problem was, i thought a reboot would be a good idea. But…
I ve searched low and high for this came across a lot of tips but none of them worked. Changing the “default beep” to (none) did nothing for me, it simply delegated to “exclamation” sound which was even worse. Best I could come up with was changing the “exclamation” sound to feed discovered 🙁 it…
It provides crucial plugin info and many pointers. Like plugin folder, plugins name, plugins main file . More importantly, it could help you with a global unique_slug. More on this, and get_file_data() workaround later…