Support » Plugin: F4 Salutation Fields for WooCommerce » Disable default options/values

  • Resolved idsbc


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

    How can I do that?


    • This topic was modified 1 year, 7 months ago by idsbc.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author F4


    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


    Works perfectly!

    Thank you!

    Plugin Author F4


    You’re welcome!

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