New answers tagged options
Sorry for being dense, you need to grab the object, overwrite the key you want to set and then save the updated object as the new option: $my_plugin_settings = get_option('my_plugin_settings'); $my_plugin_settings->object_key = 'new_value'; update_option('my_plugin_settings', $my_plugin_settings);
Use the Plugin that removes the unwanted things that were installed in your word press, but before running this plugin take a backup of your DB and files.
Your options are saved under a single key my_option_name, so you would access the individual options like: $my_options = get_option( 'my_option_name' ); echo $my_options['title']; echo $my_options['id_number'];
As Pippin has described, the Options pages for Wordpress help you setup the core styling or structure of the theme. I have heard of Redux but never have used it. I have used Advanced Custom Fields and think very greatly of it. You should give it a try, it is constantly being updated! Here are the extensions you may be interested in: ...
Other than general WordPress practice (http://make.wordpress.org/core/handbook/coding-standards/php/) which encourages spaces to always be replaced with - in file names and _ for other purposes, there isn't a set reason that you can't use spaces in an option name. From my tests, there is no technical reason to limit you from using a space. (edit) looking ...
An options framework is designed to make the creation of settings pages for plugins and themes easier. An options (or settings) page is a page in the WordPress Dashboard where the behavior of the theme or plugin can be controlled. For example, themes will often have a settings page to setup color schemes, logos, and other similar options. WordPress core ...
You can use a space, but it is a little bit annoying to select this key per keyboard. Normally, you can use Ctrl + Shift + Arrow to select a string. Hyphens and spaces are stop points for this kind of selection.
If you are going to enqueue a stylesheet you should be using wp_enqueue_scripts not wp_print_styles, but you are in a bit of a gray zone between doing things "WordPress-ie" and doing things correctly for performance. The "WordPress-ie" way is to enqueue a stylesheet, but from a performance standpoint you are loading an additional resource and in your case ...
Top 50 recent answers are included