/** * Singleton. */ protected function init() { $install = apply_filters(VA_SOCIALBUZZ_PREFIX . 'module_install', Install::get_called_class()); $uninstall = apply_filters(VA_SOCIALBUZZ_PREFIX . 'module_uninstall', Uninstall::get_called_class()); $update = apply_filters(VA_SOCIALBUZZ_PREFIX . 'module_update', Update::get_called_class()); $admin = apply_filters(VA_SOCIALBUZZ_PREFIX . 'module_admin', Admin::get_called_class()); $shortcode = apply_filters(VA_SOCIALBUZZ_PREFIX . 'module_shortcode', ShortCode::get_called_class()); $view = apply_filters(VA_SOCIALBUZZ_PREFIX . 'module_view', View::get_called_class()); $install::get_instance(); $uninstall::get_instance(); $update::get_instance(); $admin::get_instance(); $shortcode::get_instance(); $view::get_instance(); add_image_size(VA_SOCIALBUZZ_PREFIX . 'thumbnail', '980', '9999', false); // Recommend you don't use this short code registering your own post data. add_shortcode('socialbuzz', array(&$this, 'add_shortcode')); if (!is_admin()) { add_action('wp_enqueue_scripts', array(&$this, 'wp_enqueue_scripts'), 15); add_filter('the_content', array(&$this, 'the_content')); } }