Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

190
Vistas
Get all options from WordPress options table

Is there a way to get all of the options that are currently being store in the options table for my Wordpress plugin?

foreach ($options as $slug => $values) {
    var_dump($slug);
}

I have that but it only returns one single option and I need all of them to iterate over the $slug variable

about 4 years ago · Santiago Trujillo
3 Respuestas
Responde la pregunta

0

Please find the code below :

$options = wp_load_alloptions();
foreach ($options as $slug => $values) {
    var_dump($slug);
}

Hope it works for you.

about 4 years ago · Santiago Trujillo Denunciar

0

By using wp_load_alloptions You can have all the options of wp-option table.

$all_options = wp_load_alloptions();
$my_options  = array();

foreach ( $all_options as $name => $value ) {
    var_dump($name);
    var_dump($value);
}

Hope it helps!

about 4 years ago · Santiago Trujillo Denunciar

0

If you're just trying to find an option or do a one off change, there is actually a hidden page WordPress has that will let you edit these options. It's located at example.com/wp-admin/options.php.

about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda