Blog Placholder Image WooCommerce update option

WooCommerce update option

Today, we are going to talk about how to update option settings in WooCommerce or WordPress. There are three parameters that are passed to update the option function. There are mentioned below:

Option

This is the first parameter option name that you need to pass the function. It must be a string that is unique. This will be used to gather data, setting the data, and then deleting it. This is required.

Value

This is the second parameter option value. These are the values you can pass for the option name. This is required.

autoload

Whether to load this option when WordPress or WooCommerce starts up. Default is enabled. Accepts ‘no’ to disable.

Following is an example. How to update options.

update_option( 'qaisarsatti_option', 'default values', 'yes' );

Search

Recent Blogs

Categories

Archives

Archives

Tags