Changes between Version 1 and Version 2 of Ticket #24672, comment 28
- Timestamp:
- 04/18/2018 07:44:22 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #24672, comment 28
v1 v2 22 22 A better solution would be for `WP_Post` to use the `'supports'` attribute passed in during `register_post_type` to determine if a post has a specific _"supports"_ value. ''(This is basically dynamic interfaces.)'' 23 23 24 Along these lines #43740 proposes to add a `'wp_post_supports_instance 24 Along these lines #43740 proposes to add a `'wp_post_supports_instance'` hook to allow a plugin to add a contained class to each instance of `WP_Post` to contain custom functionality. 25 25 26 26 > If developers add methods or properties, it is their responsibility to choose member names for which there is a reasonable expectation that they are highly unique to avoid future name clashes.