My add options does not work
-
Here I have created an action hook just to test if my options has been added to the database table options.
When I look into the database table options I can’t see any options named prowp_plugin_options.
What is it that I have missed here?
<?php
/*
* Plugin Name: my foo
* Description: Testing default_content
* Version: 1.0
* Author: Tony Johansson
* Author URI: xxx
*/add_action(‘init’, ‘hoo’);
function hoo()
{
echo “Klart”;
$prowp_options_arr = array(
‘prowp_display_mode’ => ‘freight Night’,
‘prowp_default_browser’ => ‘Chrome’,
‘prowp_favorite_book’ => ‘Professional WordPress’);update_option(‘prowp_plugin_options’ ,$prowp_options_arr);
}
?>
The topic ‘My add options does not work’ is closed to new replies.