Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

189
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

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 Relatório

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda