'This post hasn\'t been updated in over 2 years.', 'years' => 2, 'post' => 1 ); update_option('apo_alert_old_post', $aop_plugin_options); } // get option value from the database public function databaseValues() { $options = get_option('apo_alert_old_post'); $this -> _notification = $options['notification']; $this -> _years = $options['years']; $this -> _post = $options['post']; $this -> _page = $options['page']; } // Adding Submenu to settings public function aop_settings_menu() { add_options_page('Alert Post is Old', 'Alert Post is Old', 'manage_options', 'aop-alert-post-old', array($this, 'alert_post_old_function') ); } // setttings form public function alert_post_old_function() { echo '