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
So all you need is a post->ID whats the fastest way to get it ? Jump to conclusion or lets evaluate our options here: query_posts(), get_posts(),wp_query(), $wpdb As a rule of thumb, usually we can say $wpdb > wp_query > get_posts > query_posts, meaning; you should almost never ever use query_posts. And usually between the…
There are a few issues (things I dont like) about the bootstrap accordion: 1- The title is inline, so you have to click the text part to activate it 2- There is no indication if the item is collapsed or open 3- :hover underlining is obnoxious. To solve all these; simply add the below css:…
If you are familiar with WordPress, you should already know that you should almost never have to use get_posts(). Your best bet is to use WP_Query . As good as wp_query is, you should still fine-tune it depending on your needs, it does make a difference. For example, if you just need 1 random post…
My metaboxes suddenly stopped working. If that’s the case for you, and you are clueless, try resetting $id for your meta_box
Common names are priority targets for brute force attacks. Avoid creating email and account names including words listed below. The data has been collected from a vast number of attempts, chosen the most frequent ones, plus some random sampling. Ironically, pretty sure these keywords will only attract more spam, but I hope it helps someone….
I needed a placeholder for tags input but it’s boring to display the same tags every time. But unlike posts, WP doesnt have “rand” orderby paramater. So what you can do; is to get a #no of tags and shuffle them. So basically what we do is: Check if we have a recent transient If…