AutoMySQLBackup with a basic configuration will create Daily, Weekly and Monthly backups of one or more of your MySQL databases from one or more of your MySQL servers.
- Ubuntu server
- MySQL
/* Vertical Related Posts */ | |
/* The full list */ | |
.crp_related ul li { | |
list-style-type:none; | |
/* float:left; */ | |
margin:0 40px 0 0; | |
width: 230px; | |
} |
<?php | |
// Doesn't work. | |
/** | |
* Joins the taxonomy tables. Filters bsearch_posts_join. | |
* | |
* @param string $join | |
* @return string | |
*/ |
DELETE FROM `wp_postmeta` | |
where meta_key LIKE '_su_%' | |
OR meta_key LIKE '_aioseop_%' | |
OR meta_key LIKE '_sexybookmarks_%' | |
OR meta_key LIKE '%SexyBookmarks%' | |
OR meta_key LIKE '%OgTags%' | |
OR meta_key LIKE 'digg' | |
OR meta_key LIKE 'ratings_%' | |
OR meta_key LIKE '_utw_%' | |
OR meta_key LIKE 'dsq_%' |
<?php | |
/** | |
* Filter the post types to limit it to the same post type. | |
* | |
* @param array $post_types Array of post types included in WHERE clause | |
* @return array Updated array of post types | |
*/ | |
function crp_same_post_type( $post_types ) { | |
global $post; |
<?php | |
/** | |
* Filter to override the censor character in Better Search. | |
* | |
* @param string Default censor string | |
* | |
* @return string Censored string | |
*/ | |
function filter_bsearch_censor_char( $censorChar ) { | |
return "*"; |
<?php | |
/** | |
* This function forces all related / top ten posts are from the same language. | |
* | |
* @param bool $return_original_if_missing | |
*/ | |
function filter_return_ori( $return_original_if_missing ) { | |
return true; | |
} |
<?php | |
// Fixes to disregard Hidden products and to add Author Billing field to Better Search plugin queries | |
function filter_bsearch_posts_join( $join ) { | |
global $wpdb, $author_search; | |
$join .= " | |
INNER JOIN $wpdb->postmeta AS pm ON ($wpdb->posts.ID = pm.post_id) | |
"; | |
if ( $author_search ) { | |
$join .= " | |
INNER JOIN $wpdb->postmeta AS pma ON ($wpdb->posts.ID = pma.post_id) |
sudo find . -name '*.DS_Store' -type f -delete | |
sudo find . -name 'Thumbs.db' -type f -delete |
rsync -va --progress SourceFolder DestinationFolder |