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

  • 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 months, 4 weeks ago by idsbc.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author F4

    (@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.

    idsbc

    (@idesignstudio)

    Works perfectly!

    Thank you!

    Plugin Author F4

    (@faktorvier)

    You’re welcome!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.