Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

196
Views
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 answers
Answer question

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 Report

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 Report

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!