Tag Info

Hot answers tagged

2

The option you're showing in your question is a serialized array. Retrieving the option with get_option() gives you back the array, but unserialized. This is done by maybe_unserialize(), which get_option uses. Just add a new 'key' => 'value' pair to the array you retrieved and then update the option with update_option(), et voilĂ  you have added the ...


1

You can pass boolean false to supports to have post type support nothing at all. However note that: you might run into issues with saving "empty" posts (not having one of title/editor/excerpt) likely you still want it to support custom-fields at least, rather than nothing at all



Only top voted, non community-wiki answers of a minimum length are eligible