/** * Install Documentate */ public static function install() { global $wpdb; self::create_option(); self::create_table(); // Register post types Docu_Post_Type::register_post_type(); Docu_Post_Type::register_category_taxonomy(); Docu_Post_Type::register_tag_taxonomy(); // Flush rules after install flush_rewrite_rules(); self::update_version(); // Trigger action do_action('documentate_installed'); }