📜  update_option wordpress - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:58.949000             🧑  作者: Mango

代码示例1
//store in one variable
$multidimensional_options = array(
  'inner_array'=>array(
       'foo' => 'bar',
       'hello' => 'world',
   ),
);
  
//Update entire array
update_option('my_multi_options', $multidimensional_options);
  
//Get entire array
$my_multi_options = get_option('my_multi_options');