15 lines
278 B
PHP
15 lines
278 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Wiaas DB updates
|
||
|
|
*
|
||
|
|
* Functions for updating database to latest version
|
||
|
|
*/
|
||
|
|
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Enable restricting visibility by user roles for products
|
||
|
|
*/
|
||
|
|
function wiaas_db_update_enable_product_by_user_role() {
|
||
|
|
update_option('wcj_product_by_user_role_enabled', 'yes');
|
||
|
|
}
|