autoship_set_global_sync_active_enabled (function)
(src/products.php) Sets the value for the Global '_autoship_sync_all_products_enabled' field. It takes the $option ('yes' or 'no') as a parameter
Function
/**
* Sets the value for the Global '_autoship_sync_all_products_enabled' field
*
* @param string $option 'yes' for enabled else 'no'
*/
function autoship_set_global_sync_active_enabled( $option = 'no' ) {
update_option('_autoship_sync_all_products_enabled', $option );
// Fire action that the global was changed so upgrade notice can be removed.
do_action( 'autoship_set_global_sync_active_enabled', $option );
}