adding code and docs for arbitrary set_permalinks on CPT