public function __construct(ZM_Dependency_Container $di) { $this->_zm_alr_html = $di->get_instance('html', 'ALRHtml', null); $this->_zm_alr_helpers = $di->get_instance('helpers', 'ALRHelpers', null); $this->prefix = 'zm_alr_register'; add_action('zm_alr_init', array(&$this, 'init')); }
/** * Adding of all hooks * * @since 2.0.0 * * @param * @return */ public function __construct(ZM_Dependency_Container $di) { $this->prefix = 'zm_alr_social_facebook'; $this->_zm_alr_helpers = $di->get_instance('helpers', 'ALRHelpers', null); add_action('wp_ajax_facebook_login', array(&$this, 'facebook_login')); add_action('wp_ajax_nopriv_facebook_login', array(&$this, 'facebook_login')); add_action('wp_head', array(&$this, 'head')); add_filter('get_avatar', array(&$this, 'load_fb_avatar'), 1, 5); add_filter('zm_alr_login_above_fields', array(&$this, 'aboveLoginFields')); add_filter('zm_alr_register_above_fields', array(&$this, 'aboveLoginFields')); add_filter('zm_alr_social_settings_fields_tab', array(&$this, 'settings')); }