• Resolved idsbc

    (@idesignstudio)


    I need to disable the default values that the plugin installs with.

    How can I do that?

    Thanks.

    • This topic was modified 4 years, 9 months ago by idsbc.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author FAKTOR VIER

    (@faktorvier)

    Hi @idesignstudio

    Do you mean to disable both “Mr.” and “Mrs.” from the selection? If yes, you can do this with the following hook:

    add_filter('F4/WCSF/get_salutation_options', function($options, $settings) {
    	unset($options['mr'], $options['mrs']);
    	//$options['yourown'] = 'Your custom salutation';
    	return $options;
    }, 10, 2);

    Hope this helps.

    Thread Starter idsbc

    (@idesignstudio)

    Works perfectly!

    Thank you!

    Plugin Author FAKTOR VIER

    (@faktorvier)

    You’re welcome!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Disable default options/values’ is closed to new replies.