function init() { if (function_exists('of_get_option')) { Dt_Captcha::$hide_register = of_get_option('captcha_hide_register', true); Dt_Captcha::$math_action_minus = of_get_option('captcha_math_action_minus', true); Dt_Captcha::$math_action_increase = of_get_option('captcha_math_action_increase', true); Dt_Captcha::$label_form = of_get_option('captcha_label_form', ''); Dt_Captcha::$difficulty_number = of_get_option('captcha_difficulty_number', true); Dt_Captcha::$difficulty_word = of_get_option('captcha_difficulty_word', true); } // hopefuly add captcha theme options page add_filter('optionsframework_options', array('Dt_Captcha', 'add_options')); add_action('dt_contact_form_captcha_place', 'dt_add_captcha_to_form', 10, 1); }