static function get_blacklisted_post_types_sql() { return 'post_type NOT IN (\'' . join('\', \'', array_map('esc_sql', self::get_setting('post_types_blacklist'))) . '\')'; }
private function get_where_sql($config) { $where_sql = Jetpack_Sync_Settings::get_blacklisted_post_types_sql(); // config is a list of post IDs to sync if (is_array($config)) { $where_sql .= ' AND ID IN (' . implode(',', array_map('intval', $config)) . ')'; } return $where_sql; }