Skip to content

Instantly share code, notes, and snippets.

@djp424
Created July 16, 2013 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djp424/6010020 to your computer and use it in GitHub Desktop.
Save djp424/6010020 to your computer and use it in GitHub Desktop.
function init() {
if (site_config('agentactivation')) {
add_action('init',array(&$this,'create_post_type'));
//add_action('init',array(&$this,'create_taxonomy'));
//add_filter('post_type_link',array(&$this,'filter_post_link'),10,2);
if (is_admin()) $this->admin_init();
else $this->public_init();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment