Replaces get_option with custom function