Tag Info

New answers tagged

1

There are couple main considerations with options performance. How many options there are Every option with unique key is a row in options database. More rows makes table messier, but primarily for humans to work with. You'll need to have crazy amounts of options to start making serious difference in performance. Are they autoloaded Options are by ...


0

I would store the array to the options able as a serialized value. update_option('dw_quotes', serialize($quotes)); and retrieve with: $quotes = get_option('dw_quotes', null); if ($quotes !== null) { $quotes = unserialize($quotes); } Other things to consider: Add handling in case the quotes option does not exist. Also add handling to delete quotes ...


1

"Error: Options Page Not Found" Bug This is a known issue in the WP Settings API. There was a ticket opened years ago, and it was marked as solved -- but the bug persists in the latest versions of WordPress. Simple Fix Using the custom page name (in your case: $this->plugin_slug) as your section id would get around the issue. However, all your ...



Top 50 recent answers are included