Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

use newfold data module. update filter name. #2

Merged
merged 1 commit into from
Jun 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 2 additions & 11 deletions bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,12 @@
}

/**
* Register the single sign-on module
* Register the customer data module
*/
function bluehost_register_data_package() {
// exit if module manager does not exist
if ( ! class_exists( 'Endurance_ModuleManager' ) ) {
return;
}

// exit if data module is not active
if ( ! Endurance_ModuleManager::isModuleActive('data') ) {
return;
}

// add filter callback to add customer data
add_filter( 'endurance_wp_data_module_cron_data_filter', 'bluehost_data_cron_callback' );
add_filter( 'newfold_wp_data_module_cron_data_filter', 'bluehost_data_cron_callback' );
}

/**
Expand Down
15 changes: 11 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,15 @@
"bootstrap.php"
]
},
"repositories": [
{
"repositories": {
"newfold": {
"type": "composer",
"url": "https://newfold-labs.github.io/satis/",
"only": [
"newfold-labs/*"
]
},
"bluehost": {
"type": "composer",
"url": "https://bluehost.github.io/satis/",
"only": [
Expand All @@ -27,9 +34,9 @@
"endurance/*"
]
}
],
},
"require": {
"endurance/wp-module-data": ">=1.6.1"
"newfold-labs/wp-module-data": "^2.0"
},
"require-dev": {
"bluehost/wp-php-standards": "^1.1"
Expand Down
24 changes: 12 additions & 12 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.