# CM Tooltips Plugin troubleshooting

**URL:** <https://pressbooks.community/t/cm-tooltips-plugin-troubleshooting/34>\
**Category:** Third-party Plugins & Integrations\
**Created:** [December 5, 2016, 10:27pm UTC](https://pressbooks.community/t/cm-tooltips-plugin-troubleshooting/34 "2016-12-05T22:27:18Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![ned](https://pressbooks.community/user_avatar/pressbooks.community/ned/32/533_2.png) [@ned](https://pressbooks.community/u/ned)\
**Post date:** [December 5, 2016, 10:27pm UTC](https://pressbooks.community/t/cm-tooltips-plugin-troubleshooting/34/1 "2016-12-05T22:27:18Z")

</div>

Closing the related GitHub issue, but here it is for reference: [Compatibility with CM Tooltip Glossary Plugin · Issue #546 · pressbooks/pressbooks · GitHub](https://github.com/pressbooks/pressbooks/issues/546)

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.

---

<div class="post-metadata">

**Author:** ![gabriel.higginbotham](https://pressbooks.community/letter_avatar_proxy/v4/letter/g/a6a055/32.png) [@gabriel.higginbotham](https://pressbooks.community/u/gabriel.higginbotham)\
**Post date:** [May 11, 2017, 8:48pm UTC](https://pressbooks.community/t/cm-tooltips-plugin-troubleshooting/34/2 "2017-05-11T20:48:47Z")

</div>

Was anything resolved with the CM Tooltip problem? I am facing the same issue myself.

---

<div class="post-metadata">

**Author:** ![ned](https://pressbooks.community/user_avatar/pressbooks.community/ned/32/533_2.png) [@ned](https://pressbooks.community/u/ned)\
**Post date:** [May 11, 2017, 10:31pm UTC](https://pressbooks.community/t/cm-tooltips-plugin-troubleshooting/34/3 "2017-05-11T22:31:20Z")

</div>

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](https://github.com/pressbooks/pressbooks/blob/dev/includes/admin/pb-laf.php#L633) and [here](https://github.com/pressbooks/pressbooks/blob/dev/includes/pb-posttype.php#L13-L23). If one were to add a filter to that array of post types, the CM Tooltip Glossary plugin’s post types could be whitelisted.

---

<div class="post-metadata">

**Author:** ![gabriel.higginbotham](https://pressbooks.community/letter_avatar_proxy/v4/letter/g/a6a055/32.png) [@gabriel.higginbotham](https://pressbooks.community/u/gabriel.higginbotham)\
**Post date:** [May 12, 2017, 9:53pm UTC](https://pressbooks.community/t/cm-tooltips-plugin-troubleshooting/34/5 "2017-05-12T21:53:24Z")

</div>

@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.

---

<div class="post-metadata">

**Author:** ![ned](https://pressbooks.community/user_avatar/pressbooks.community/ned/32/533_2.png) [@ned](https://pressbooks.community/u/ned)\
**Post date:** [May 12, 2017, 11:54pm UTC](https://pressbooks.community/t/cm-tooltips-plugin-troubleshooting/34/6 "2017-05-12T23:54:53Z")

</div>

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/](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.

---

<div class="post-metadata">

**Author:** ![SteelWagstaff](https://pressbooks.community/user_avatar/pressbooks.community/steelwagstaff/32/1280_2.png) [@SteelWagstaff](https://pressbooks.community/u/SteelWagstaff)\
**Post date:** [May 18, 2017, 2:55pm UTC](https://pressbooks.community/t/cm-tooltips-plugin-troubleshooting/34/7 "2017-05-18T14:55:54Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![ned](https://pressbooks.community/user_avatar/pressbooks.community/ned/32/533_2.png) [@ned](https://pressbooks.community/u/ned)\
**Post date:** [May 18, 2017, 3:38pm UTC](https://pressbooks.community/t/cm-tooltips-plugin-troubleshooting/34/8 "2017-05-18T15:38:26Z")

</div>

I would greatly appreciate a PR!

Please create a feature branch from dev (named something like `filter-posttypes`) in your fork, and use a filter name like: `pb_supported_post_types` when filtering the array in [https://github.com/pressbooks/pressbooks/blob/dev/includes/pb-posttype.php#L13-L23](https://github.com/pressbooks/pressbooks/blob/dev/includes/pb-posttype.php#L13-L23).

---

<div class="post-metadata">

**Author:** ![ned](https://pressbooks.community/user_avatar/pressbooks.community/ned/32/533_2.png) [@ned](https://pressbooks.community/u/ned)\
**Post date:** [May 18, 2017, 3:38pm UTC](https://pressbooks.community/t/cm-tooltips-plugin-troubleshooting/34/9 "2017-05-18T15:38:48Z")

</div>

If you want to reference [https://github.com/pressbooks/pressbooks/issues/546](https://github.com/pressbooks/pressbooks/issues/546) in the PR that would be great too!

---

<div class="post-metadata">

**Author:** ![SteelWagstaff](https://pressbooks.community/user_avatar/pressbooks.community/steelwagstaff/32/1280_2.png) [@SteelWagstaff](https://pressbooks.community/u/SteelWagstaff)\
**Post date:** [May 19, 2017, 4:01pm UTC](https://pressbooks.community/t/cm-tooltips-plugin-troubleshooting/34/10 "2017-05-19T16:01:06Z")

</div>

Pull request submitted this morning: [https://github.com/SteelWagstaff/pressbooks/pull/1](https://github.com/SteelWagstaff/pressbooks/pull/1). Thanks for your help, @ned!

---

<div class="post-metadata">

**Author:** ![SteelWagstaff](https://pressbooks.community/user_avatar/pressbooks.community/steelwagstaff/32/1280_2.png) [@SteelWagstaff](https://pressbooks.community/u/SteelWagstaff)\
**Post date:** [July 13, 2017, 9:40pm UTC](https://pressbooks.community/t/cm-tooltips-plugin-troubleshooting/34/11 "2017-07-13T21:40:54Z")

</div>

Following up on this. Ned added a custom post types filter to 4.0 (released earlier this week): [https://github.com/pressbooks/pressbooks/blob/4.0.0/inc/posttype/namespace.php#L16-L29](https://github.com/pressbooks/pressbooks/blob/4.0.0/inc/posttype/namespace.php#L16-L29). If you want to add ‘glossary’ to the array of permitted post types, one way to do it would be to add this code to a functionality plugin:

\<?php // Adds 'glossary' as an additional permitted custom post type function add\_post\_types ( $existing\_post\_types = array()) { $add\_custom\_types = array ( 'glossary' ); return array\_merge( $add\_custom\_types, $existing\_post\_types ); } add\_filter( 'pb\_supported\_post\_types', 'add\_post\_types' ); ?\>

---

<div class="post-metadata">

**Author:** ![ned](https://pressbooks.community/user_avatar/pressbooks.community/ned/32/533_2.png) [@ned](https://pressbooks.community/u/ned)\
**Post date:** [July 13, 2017, 9:56pm UTC](https://pressbooks.community/t/cm-tooltips-plugin-troubleshooting/34/12 "2017-07-13T21:56:42Z")

</div>

X-Post: [Custom Post Types](https://pressbooks.community/t/custom-post-types/217/3?u=ned)

---

<div class="post-metadata">

**Author:** ![SteelWagstaff](https://pressbooks.community/user_avatar/pressbooks.community/steelwagstaff/32/1280_2.png) [@SteelWagstaff](https://pressbooks.community/u/SteelWagstaff)\
**Post date:** [July 27, 2017, 6:13pm UTC](https://pressbooks.community/t/cm-tooltips-plugin-troubleshooting/34/13 "2017-07-27T18:13:13Z")

</div>

Just published our Unizin plugin to GitHub if others are interested in using: [https://github.com/SteelWagstaff/unizin-allow-custom-post-types](https://github.com/SteelWagstaff/unizin-allow-custom-post-types)

---

<div class="post-metadata">

**Author:** ![SteelWagstaff](https://pressbooks.community/user_avatar/pressbooks.community/steelwagstaff/32/1280_2.png) [@SteelWagstaff](https://pressbooks.community/u/SteelWagstaff)\
**Post date:** [September 29, 2025, 8:26pm UTC](https://pressbooks.community/t/cm-tooltips-plugin-troubleshooting/34/14 "2025-09-29T20:26:52Z")

</div>


