Retrieve all autoload options or all options, if no autoloaded ones exist. This function caches its results. It will pull the autoload options by default unless that fails, in which case it will return all options.
Use this function instead of the deprecated function get_alloptions()
<?php $all_options = wp_load_alloptions(); ?>
None.
<?php
$all_options = wp_load_alloptions();
$my_options = array();
foreach( $all_options as $name => $value ) {
if(stristr($name, '_transient')) $my_options[$name] = $value;
}
print_r($my_options);
?>
Since: 1.0.0
wp_load_alloptions() is located in wp-includes/option.php
.