title: Updating Wordpress Permalinks
body: <p>I have created a plugin that uses custom posts. To get these to display the permalinks need re-saving, no need to change anything, they just need re-saving.</p>
  
  <p>There must be a way to do this using a hook but I can't work out how to do this. The function flush_rules looks like it might do the job but it doesn't seem to work.</p>
  
  <p>Sample code here: <a href="http://codex.wordpress.org/Rewrite_API/flush_rules" rel="nofollow">http://codex.wordpress.org/Rewrite_API/flush_rules</a></p>