Create new blog default link categories

Thanks in advance for your help.

I created a theme for a single wordpress blog that allows the Editors to create a bookmark in the DIDYOUKNOW category and have it displayed on the sidebar. We were doing this by defining the link category id in functions.php and then referring to that when we call get_bookmarks (code below)

They now want to create more blogs using this same theme. Is there a good way to programmatically create new link categories and get their id's? Or I suppose i could rely on passing category_name into get_links. I've seen the blog default categories plugin, before I go about figuring it out, does something similar already exist for link categories? Or is there a smarter way to go about what I'm trying to achieve?

Thanks

/// functions.php
define(DIDYOUKNOW_ID, 8);

//sidebar.php
<?php
$dyk = get_bookmarks('category=' . DIDYOUKNOW_ID . '&limit=1&orderby=updated&order=DESC');

if(count($dyk)) : ?>
<div class="featbox">
<? foreach($dyk as $bkmrk) : ?>
<h3><?= $bkmrk->link_name; ?></h3>
<? if(strlen($bkmrk->link_image)) : ?>
<img src="<?= $bkmrk->link_image; ?>" alt="" /><? endif; ?>
<p>link_url; ?>" >Learn More</p>
<? endforeach; ?>
</div>
<? endif; ?>