Answers for "wordpress get option value"

PHP
1

wordpress get option value

$no_exists_value = get_option( 'no_exists_value' );
var_dump( $no_exists_value ); /* outputs false */
 
$no_exists_value = get_option( 'no_exists_value', 'default_value' );
var_dump( $no_exists_value ); /* outputs 'default_value' */
Posted by: Guest on September-24-2021
0

wordpress get option

$reg = get_option('region')
Posted by: Guest on September-24-2021

Browse Popular Code Answers by Language