WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/get alloptions


This function has been deprecated. That means it has been replaced by a new function or is no longer supported, and may be removed from future versions. All code that uses this function should be converted to use its replacement if one exists. See also wp-includes/deprecated.php. Use any of these functions instead.

Deprecated since WordPress 3.0, use wp_load_alloptions() instead.

Contents

Description

Retrieve all autoload options or all options, if no autoloaded ones exist.

This is different from wp_load_alloptions() in that this function does not cache its results and will retrieve all options from the database every time it is called.

Usage

<?php get_alloptions() ?>

Parameters

None.

Return Values

(array) 
List of all options.

Examples

Notes

  • Uses: apply_filters() Calls 'pre_option_$optionname' hook with option value as parameter.
  • Uses: apply_filters() Calls 'all_options' on options list.
  • Uses global: (object) $wpdb

Change Log

Since: 1.0.0

Source File

get_alloptions() is located in wp-includes/functions.php.

Related

See also index of Function Reference and index of Template Tags.