Saving Plugin settings to the database

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 from the option table … Read more

wp-cli silently fails with error code 255

You could at least try to run wp COMMAND –debug to see what this will give you. I once got this after I manually copied a preprocessed wp-config.php in place to be used inside a Docker container. Suddenly all commands stopped working, silently. The container returned me a 255. With –debug I could identify at … Read more