/** * __construct function. * * @access public * @return void */ function __construct() { self::$instance = $this; add_action('init', array($this, 'init')); // set the default wiki embed value if the once from the Options are not set $this->options = shortcode_atts($this->default_settings(), get_option('wikiembed_options')); $this->wikiembeds = get_option('wikiembeds'); // we might not need to load this here at all... $this->content_count = 0; $this->version = WIKI_EMBED_VERSION; // display a page when you are clicked from a wiki page add_action('template_redirect', array($this, 'load_page')); add_filter('posts_join', array($this, 'search_metadata_join')); add_filter('posts_where', array($this, 'search_metadata_where')); add_filter('sf_posts_query', array($this, 'search_metadata_ajaxy')); }