woocommerce_settings-

woocommerce_settings-

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

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

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

  • /includes/rest-api/Controllers/Version2/class-wc-rest-setting-options-v2-controller.php line 169
    			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
    		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: