WordPress at Your Fingertips
function is not described

get_alloptions_110() WP 1.2.0

Retrieve all options as it was for 1.2.

No Hooks.

Return

stdClass. List of options.

Usage

get_alloptions_110();

Notes

  • Global. wpdb. $wpdb WordPress database abstraction object.

Changelog

Since 1.2.0 Introduced.

Code of get_alloptions_110() WP 5.8.2

function get_alloptions_110() {
	global $wpdb;
	$all_options = new stdClass;
	$options     = $wpdb->get_results( "SELECT option_name, option_value FROM $wpdb->options" );
	if ( $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;
}