Skip to content

Commit

Permalink
Merge pull request #3 from newfold-labs/add-core-data-filter
Browse files Browse the repository at this point in the history
Add core data filter
  • Loading branch information
wpscholar authored Jul 12, 2022
2 parents 953117e + 37b0b1b commit ef84445
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion src/HiiveConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ),
Expand All @@ -286,5 +286,7 @@ public function get_core_data() {
'wp' => $wp_version,
);

return apply_filters( 'newfold_wp_data_module_core_data_filter', $data );

}
}

0 comments on commit ef84445

Please sign in to comment.