Ok so i've been messing with this for awhile...and it simply wont work...here is the plugin:
Dir: .../wp-content/plugins/oop/
File: oop.php
<?php
/*
Plugin Name: OOP
Plugin URI: http://www.domain.com/
Description: oop tests
Version: 1.0.0
Author: Jason
Author URI: http://www.domain.com/
*/
function oop_test(){
add_option('oop_test','testing');
}
function oop_disp(){
$test = get_option('oop_test');
if($test !== false){
echo $test;
}else{
echo 'Activation hook failed';
}
}
register_activation_hook( __FILE__, 'oop_test' );
add_action('admin_head','oop_disp');
?>
Simple right?...well I can't get it to work...indecently, I have other plugins that use the same register_activation_hook( __FILE__, 'some_func' ); and it works fine???
Thanks in advance for any thoughts on this!