This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$wpdb->save_queries = false; | |
$wpdb->persistent = false; | |
$wpdb->max_connections = 0; | |
$wpdb->check_tcp_responsiveness = true; | |
//マスターDB設定 | |
//readはスレーブがタイムアウトしたときのために2に設定 | |
$wpdb->add_database(array( | |
'host' => DB_HOST, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// filter to exclude specified post_meta from Polylang Sync ## | |
add_filter( 'pll_copy_post_metas', 'q_pll_copy_post_metas' ); | |
/** | |
* Remove defined custom fields from Polylang Sync | |
* | |
* @since 0.1 | |
* @param Array $metas |