Pass the correct param in woocommerce_settings_features.

This commit is contained in:
Vedanshu Jain 2023-06-26 18:25:24 +05:30
parent 7fbb12b274
commit 1d04ddcd11
1 changed files with 1 additions and 3 deletions

View File

@ -565,11 +565,9 @@ class FeaturesController {
*
* @param bool $disabled False.
*/
$additional_features = apply_filters( 'woocommerce_settings_features', $features );
$feature_settings = apply_filters( 'woocommerce_settings_features', $feature_settings );
// phpcs:enable WooCommerce.Commenting.CommentHooks.MissingSinceComment
$feature_settings = array_merge( $feature_settings, $additional_features );
if ( ! empty( $experimental_feature_ids ) ) {
$feature_settings[] = array(
'type' => 'sectionend',