/** */ protected function init() { // run parent init method parent::init(); // add actions add_action('open_body', array($this, 'render')); }
/** */ protected function init() { // run parent init method parent::init(); // register actions as late as possible (this may need to be tweaked later) add_action('init', array($this, 'register_actions')); }
/** */ protected function init() { // run parent parent::init(); // init directives $this->title = __('Header Logo', infinity_text_domain); $this->description = __('Custom header logo support', infinity_text_domain); }
/** */ protected function init() { // run parent init method parent::init(); // add actions add_action('open_head', array($this, 'viewport_meta')); add_action('wp_head', array($this, 'render')); }
/** */ protected function init() { // run parent init method parent::init(); // init properties $this->title = __('FaceBook Auto Connect', infinity_text_domain); $this->description = __('Enables FaceBook Auto Connect support', infinity_text_domain); // add actions on which to render add_action('bp_before_account_details_fields', array($this, 'render')); }
/** */ protected function init() { // run parent init method parent::init(); // init properties $this->title = __('BuddyPress Protect', infinity_text_domain); $this->description = __('Restrict access to your BuddyPress components to members only', infinity_text_domain); // add action to get_header add_action('wp', array($this, 'maybe_redirect'), 1); }
/** */ protected function init() { // make sure component is supported if ($this->supported()) { parent::init(); if (is_admin() && !is_dir(get_template_directory() . '/members') && !is_dir(get_stylesheet_directory() . '/members')) { bp_core_add_admin_notice(__("You have BuddyPress activated, but the templates are missing from your theme!", infinity_text_domain)); return false; } $this->setup_theme(); // addtl filters add_filter('bp_no_access_mode', array($this, 'use_wplogin')); add_filter('bp_get_activity_action_pre_meta', array($this, 'secondary_avatars'), 10, 2); // addtl actions add_action('open_sidebar', array($this, 'message_notices')); } }
/** */ protected function init() { // run parent parent::init(); // set property defaults $this->title = __('Joyride Plugin'); $this->description = __('A wrapper for the jQuery Joyride plugin'); $this->id = 'joyRideTipContent'; }
/** */ protected function init() { // run parent init method parent::init(); // add actions add_action('open_body', array($this, 'render')); add_action('open_wrapper', array($this, 'menu_container')); // add filter add_filter('loginout', array($this, 'loginout_filter')); }