githuber-md
githuber-md copied to clipboard
When using LearnDash, posts of type "Question" can not be enabled to use markdown
First off, thank you very much for the excellent plugin!
Describe the bug
When using LearnDash (https://www.learndash.com/), there are a few custom post types created. In Githuber-md's settings, Markdown > Writing > Enable, almost all of the custom post types are listed. "Question" is not. It would help if that was possible.
To reproduce
Steps to reproduce the behavior:
- Install Learndash and githuber-md
- Click on .../wp-admin/options-general.php?page=githuber-md (settings for githuber-md)
- The list of post types does not include "Question"
Expected behavior
It's expected to be able to use markdown for all post types, including "Question"
Server environment
- WordPress version [ 5.4.2 ]
- WP Githuber MD plugin version [ e.g. 1.15.0 ]
It's related to the conditional here: https://github.com/terrylinooo/githuber-md/blob/40a2885250ff57e6555eeaf304b43b3c700809cc/src/Controllers/Setting.php#L151
From what I can tell, Questions are not public. I'm not sure of what a better conditional here is.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 2 days.
This issue was closed because it has been inactive for 14 days since being marked as stale.