How to get a serialized option
-
Could someone indicate how to retrieve a specific option value from a Plugin which has serialized values.
For example. A Plugin has a row in the options table “my_plugin_options”.
It has serialized data but we know the unserialized form is:
themecolor: red
sidebarwidth: 300px
headerimage: applesThis does not work:
echo get_option (my_plugin_options_themecolor)
like it does for non serialized options. I have studied themes and plugins but to no avail.
Many thanks.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to get a serialized option’ is closed to new replies.