hypothesis / wp-hypothesis

Hypothesis WordPress plugin
https://wordpress.org/plugins/hypothesis/
Other
29 stars 14 forks source link

Add filter to support custom post types. #17

Closed greatislander closed 8 years ago

greatislander commented 8 years ago

This pull request adds the ability to include custom post types in Hypothesis' content settings and output control logic. It also includes some refactoring to eliminate the repetition of functionality (e.g. settings field callbacks), reformatting to conform to WordPress coding standards, and documentation blocks for all functions. Feedback welcomed!

greatislander commented 8 years ago

Hi @judell! Sorry for the delay in getting the fixes you identified in place. I've run through your testing protocol and confirmed that the latest commits in this PR addresses the issue with pages. For testing with custom post types, try dropping this file into /wp-content/mu-plugins/: https://gist.github.com/greatislander/85840dd6546266a9737e377d1348a40d.

judell commented 8 years ago

Thanks @greatislander, running through the tests now.