Search
 
SCRIPT & CODE EXAMPLE
 

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');
Comment

PREVIOUS NEXT
Code Example
Php :: laravel model factory attribute 
Php :: destruct php 
Php :: how to run a php file in xampp 
Php :: echo php in html 
Php :: array_unshift 
Php :: laravel mail cc 
Php :: laravel belongs to 
Php :: find substring php 
Php :: how to download a file in php 
Php :: laravel request input default value 
Php :: php globals 
Php :: drop foreign key laravel 
Php :: php dirname 
Php :: php get country code from country name 
Php :: laravel blade array seearch select box 
Php :: empty in php 
Php :: add action hook 
Php :: Laravel check for constraint violation 
Php :: foreach loop not working in php 
Php :: error laravel 404 in server 
Php :: how to use uuid in laravel model 
Php :: laravel eloquent relationship 
Php :: sync laravel 
Php :: mktime() php 
Php :: wp php footer date automatically 
Php :: Laravel Max Helper Function 
Php :: Uncaught jquery-numerator requires jQuery to be loaded first wordpress 
Php :: php capture include 
Php :: laravel what is migrations 
Php :: entrust laravel 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =