Title: changing settings in settings.php in function.php
Last modified: August 22, 2016

---

# changing settings in settings.php in function.php

 *  [timholz](https://wordpress.org/support/users/timholz/)
 * (@timholz)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/changing-settings-in-settingsphp-in-functionphp/)
 * Hi
    Thanks for the plugin. I use it on several sites.
 * I’ve altered the settings.php file. With future updates, that is of course not
   very clever.
    I tried to add a filter in my functions.php.
 *     ```
       add_filter('cbnet_rscc_get_option_defaults', 'override_cbnet_rscc_get_option_defaults');
       function override_cbnet_rscc_get_option_defaults ($defaults){
       	$defaults = array(
       		'chars' => 'ABCDEFGHJKLMNPQRSTUVWXYZ23456789',
       		'char_length' => '3',
       		'img_size_x' => '90',
       		'img_size_y' => '24',
       		'fg_r' => '0',
       		'fg_g' => '0',
       		'fg_b' => '0',
       		'bg_r' => '255',
       		'bg_g' => '255',
       		'bg_b' => '255',
       		'font_size' => '18',
       		'font_char_width' => '15',
       		'img_type' => 'png',
       		'base' => array( '6', '18'),
       		'comment_form_label' => __( '' , 'cbnet_rscc' )
       	);
       	return $defaults;
       }
       ```
   
 * But that did not work.
    Could you give me a hint how to alter the settings via
   functions.php?
 * Thank you very much for your time.
 * regards
    theo
 * [https://wordpress.org/plugins/cbnet-really-simple-captcha-comments/](https://wordpress.org/plugins/cbnet-really-simple-captcha-comments/)

The topic ‘changing settings in settings.php in function.php’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/cbnet-really-simple-captcha-comments.
   svg)
 * [cbnet Really Simple CAPTCHA Comments](https://wordpress.org/plugins/cbnet-really-simple-captcha-comments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cbnet-really-simple-captcha-comments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cbnet-really-simple-captcha-comments/)
 * [Active Topics](https://wordpress.org/support/plugin/cbnet-really-simple-captcha-comments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cbnet-really-simple-captcha-comments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cbnet-really-simple-captcha-comments/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [timholz](https://wordpress.org/support/users/timholz/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/changing-settings-in-settingsphp-in-functionphp/)
 * Status: not resolved