public static function init() { CMA_AnswerThread::init(); CMA_BuddyPress::init(); if (get_option('cma_afterActivation', 0) == 1) { add_action('admin_notices', array(get_class(), 'showProMessages')); } add_action('init', array('CMA_BaseController', 'bootstrap')); add_action('widgets_init', array('CMA_AnswerController', 'registerSidebars')); add_filter('bp_blogs_record_comment_post_types', array(get_class(), 'bp_record_my_custom_post_type_comments')); }
public static function init() { $licensingApi = new CMA_free_Cminds_Licensing_API('CM Answers', CMA_AnswerThread::ADMIN_MENU, 'CM Answers', CMA_PLUGIN_FILE, array('release-notes' => 'http://answers.cminds.com/release-notes/'), '', array('CM Answers')); CMA_AnswerThread::init(); CMA_BuddyPress::init(); if (get_option('cma_afterActivation', 0) == 1) { add_action('admin_notices', array(get_class(), 'showProMessages')); } add_action('init', array('CMA_BaseController', 'bootstrap')); add_filter('bp_blogs_record_comment_post_types', array(get_class(), 'bp_record_my_custom_post_type_comments')); }