You appear to be a bot. Output may be restricted
Description
Update an optionHere we're ponly working with simple, single value string options
Usage
oik_locurl_update_option( $option, $value );
Parameters
- $option
- ( string ) required –
- $value
- ( string ) required –
Returns
voidSource
File name: oik-batch/oik-locurl.phpLines:
1 to 9 of 9
function oik_locurl_update_option( $option, $value ) { $current = get_option( $option ); if ( $current != $value ) { update_option( $option, $value ); echo "Option: $option set to $value was $current" . PHP_EOL; } else { echo "Option: $option already set to $value" . PHP_EOL; } }View on GitHub