Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

Snaphaan on "Unserialize serialized data in wp_options"

$
0
0

I need to extract the data saved in my widgets from wp_options for comparisons and other uses. As far as I understand the data needs to be un-serialized and that is the function of get_option().

But I can't seem to do anything with the data.

The following code seems simple enough:

$text_widgets = get_option( 'widget_suidlanders_advertensies' );
	echo var_dump($text_widgets);

	foreach ( $text_widgets as $widget ) {
		extract( $widget );
}

The var_dump() throws out the following:

array (size=2)
  2 =>
    array (size=3)
      'title' => string 'Titel' (length=5)
      'text' => string 'Teks' (length=4)
      'textarea' => string 'Teks Area is hier		' (length=19)
  '_multiwidget' => int 1

How am I suppose to utilize this to make a comparison? If ($this == $that) etc.


Viewing all articles
Browse latest Browse all 8245

Trending Articles