Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #61890, comment 25


Ignore:
Timestamp:
08/28/2024 11:20:16 AM (10 months ago)
Author:
adrianduffell
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #61890, comment 25

    initial v1  
    1717}}}
    1818
    19 If storing the data in term meta is undesirable, and there is a genuine need for extra properties, OOP-wise I think this is a strong  sign a new class should be created to properly represent the data. I see an example of this in WP's in `wp_tag_cloud` function. It currently adds dynamic properties to a `WP_Term` object:
     19If storing the data in term meta is undesirable, and there is a genuine need for extra properties, OOP-wise I think this is a strong signal a new class should be created to properly represent the data. I see an example of this in WP's in `wp_tag_cloud` function. It currently adds dynamic properties to a `WP_Term` object:
    2020
    2121{{{#!php