Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #12955, comment 50


Ignore:
Timestamp:
11/18/2016 11:02:27 AM (10 years ago)
Author:
MikeSchinkel

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12955, comment 50

    v1 v2  
    33> Though you cannot extend WP_Post you can build a custom wrapper.
    44
    5 Actually, ''technically speaking,'' you are absolutely correct.  It is completely technically possible to create a custom wrapper function.
     5Actually, ''technically speaking,'' you are absolutely correct.  It is completely technically possible to create a custom wrapper class around `WP_Post`.
    66
    7 The problem is that -- '''practically speaking''' -- you cannot actually use it in a typical WordPress theme.
     7However, the problem is that -- '''practically speaking''' -- you cannot actually use said custom wrapper class in a typical WordPress theme.
    88
    99 Try the following; add this to `functions.php` in the your theme: