Basically, @SteelWagstaff was running into issues where non-admin users were getting “Unsupported post type” errors and permalinks weren’t being properly refreshed. Is that an accurate summary, Steele? Will post a few related items below.
Hi, @gabriel.higginbotham—I’ve discussed the specific barrier to getting this plugin functioning with @SteelWagstaff (it was the post type restrictions, right Steel)? Specifically, Pressbooks currently only allows users to create specific post types: see here and here. If one were to add a filter to that array of post types, the CM Tooltip Glossary plugin’s post types could be whitelisted.
@ned Thank you! Would adding the post type (‘glossary’) to the array have undesired effects? I am not completely proficient in PHP, so I am not entirely sure what you mean by ‘filter’ in this case.
It would, but we don’t want to add every possible post type that users might want to support via third-party plugins to our core list of post types. What I mean by filter is this: https://developer.wordpress.org/plugins/hooks/filters/
If you could test just adding the post type to the array and confirm that it works, I will go ahead and add the filter.
Hi @ned and @gabriel.higginbotham, I just added ‘glossary’ to the array in pb-posttytpes.php and it resolved the issues we were having earlier. Looks like a very simple fix, so thanks for helping, Ned! If you create that filter, we can probably create a sample functionality plugin in short order. Would you like help with a pull request?