Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #24672, comment 28


Ignore:
Timestamp:
04/18/2018 07:44:22 PM (6 years ago)
Author:
MikeSchinkel
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24672, comment 28

    v1 v2  
    2222A 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.)'' 
    2323
    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.
     24Along 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.
    2525
    2626> 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.