woocommerce_settings-

woocommerce_settings-

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_settings-') is found 2 times:

  • /includes/rest-api/Controllers/Version2/class-wc-rest-setting-options-v2-controller.php line 169
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
        return new WP_Error( 'rest_setting_setting_group_invalid', __( 'Invalid setting group.', 'woocommerce' ), array( 'status' => 404 ) );
    }
     
    // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    $settings = apply_filters( 'woocommerce_settings-' . $group_id, array() );
     
    if ( empty( $settings ) ) {
        return new WP_Error( 'rest_setting_setting_group_invalid', __( 'Invalid setting group.', 'woocommerce' ), array( 'status' => 404 ) );
    }
     
    $filtered_settings = array();
  • /includes/rest-api/Controllers/Version3/class-wc-rest-setting-options-controller.php line 79
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    if ( empty( $group_id ) ) {
        return new WP_Error( 'rest_setting_setting_group_invalid', __( 'Invalid setting group.', 'woocommerce' ), array( 'status' => 404 ) );
    }
     
    $settings = apply_filters( 'woocommerce_settings-' . $group_id, array() ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
     
    if ( empty( $settings ) ) {
        return new WP_Error( 'rest_setting_setting_group_invalid', __( 'Invalid setting group.', 'woocommerce' ), array( 'status' => 404 ) );
    }
     
    $filtered_settings = array();

See this hook used in plugins: