/** * Things to do once SLP is alive. */ function slp_init() { global $slplus_plugin; $this->addon = $this; $this->slplus = $slplus_plugin; // Check the base plugin minimum version requirement. // $this->slplus->VersionCheck(array('addon_name' => $this->name, 'addon_slug' => $this->slug, 'min_required_version' => $this->min_slp_version)); // Tell SLP we are here // $this->slplus->register_addon($this->slug, $this); // Initialize The Options // $this->init_options(); // Add Hooks and Filters // $this->add_hooks_and_filters(); // Admin Interface? // if (!empty($this->admin_class_name)) { add_filter('slp_menu_items', array($this, 'filter_AddMenuItems')); add_action('slp_admin_menu_starting', array($this, 'admin_menu')); } // User Interface? // if (!empty($this->userinterface_class_name)) { add_action('wp_enqueue_scripts', array($this, 'userinterface_init')); } // AJAX Processing // if (defined('DOING_AJAX') && DOING_AJAX && !empty($this->ajax_class_name)) { $this->createobject_AJAX(); } }