diff --git a/bootstrap.php b/bootstrap.php index 902baae..0dd310e 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -12,7 +12,7 @@ exit; } -define( 'NFD_DATA_MODULE_VERSION', '2.1.0' ); +define( 'NFD_DATA_MODULE_VERSION', '2.2.0' ); /** * Register the data module diff --git a/src/HiiveConnection.php b/src/HiiveConnection.php index e539235..f867f3c 100644 --- a/src/HiiveConnection.php +++ b/src/HiiveConnection.php @@ -271,7 +271,7 @@ public static function get_auth_token() { public function get_core_data() { global $wpdb, $wp_version; - return array( + $data = array( 'brand' => sanitize_title( get_option( 'mm_brand', 'false' ) ), 'cache_level' => intval( get_option( 'newfold_cache_level', 2 ) ), 'cloudflare' => get_option( 'newfold_cloudflare_enabled', false ), @@ -286,5 +286,7 @@ public function get_core_data() { 'wp' => $wp_version, ); + return apply_filters( 'newfold_wp_data_module_core_data_filter', $data ); + } }