public function init() { require_once SGMB_CLASSES . 'Installer.php'; register_activation_hook(SGMB_PATH . 'sgmb-buttons.php', array('SGMB', 'activate')); register_uninstall_hook(SGMB_PATH . 'sgmb-buttons.php', array('SGMB', 'deactivate')); add_action('admin_menu', array($this, 'addMenu')); add_shortcode('sgmb', array($this, 'showShortCode')); add_action('widgets_init', array($this, 'load_widget')); add_action('media_buttons', array($this, 'mediaButtons'), 11); add_action('admin_enqueue_scripts', array($this, 'wptuts_add_color_picker')); add_filter('the_content', array($this, 'buttonsShowOnEveryPost')); $sgmbButton = new SGMBButton(); $sgmbButton->init(); }