Skip to main content
1 of 2

How Can i import plugin option?

hey guys i'm trying to import my plugin option into wordpress with php but i can't find any tutorial or describe about this section

i have this example:

my option name:

get_option('meow');

what i have in this option are

'cats'=> '2',
'food' => array('tona','fish'),

so how can i use

update_option

to import this values? i tried this way but it's not working

update_option('meow', 'cats','5');