Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

wordpress options

Wordpress options [stored in the {$wpdb->prefix}_options table]
store data about the site itself  (as opposed to site content)

Options are key value pairs, where the value can be a single value or an array of values.
// add a new option
add_option('wporg_custom_option', 'hello world!');
// get an option
$option = get_option('wporg_custom_option');
 
PREVIOUS NEXT
Tagged: #wordpress #options
ADD COMMENT
Topic
Name
9+9 =