A WordPress-centric search engine for devs and theme authors



get_alloptions_110 ›

Since1.2.0
Deprecatedn/a
get_alloptions_110 ( No parameters )
Returns:
  • (stdClass) List of options.
Defined at:
Codex:

Retrieve all options as it was for 1.2.



Source

function get_alloptions_110() {
	global $wpdb;
	$all_options = new stdClass;
	if ( $options = $wpdb->get_results( "SELECT option_name, option_value FROM $wpdb->options" ) ) {
		foreach ( $options as $option ) {
			if ( 'siteurl' == $option->option_name || 'home' == $option->option_name || 'category_base' == $option->option_name )
				$option->option_value = untrailingslashit( $option->option_value );
			$all_options->{$option->option_name} = stripslashes( $option->option_value );
		}
	}
	return $all_options;
}