learndash_pre_posts_feeds( WP_Query $query )
Disables the RSS feeds if the feed support is disabled for the post type.
Description #
Fires on pre_get_posts hook. Controls the output of the Feeds (RSS2 etc) for the various custom post types used within LearnDash. By default the only feed should be for Courses (sfwd-courses). All other post types are disabled by default.
Parameters #
- $query
-
(WP_Query) (Required)
WP_Queryinstance.
Source #
Changelog #
| Version | Description |
|---|---|
| 2.6.0 | Introduced. |