[wp-trac] [WordPress Trac] #14958: Add a "get_post" filter to get_post()
WordPress Trac
noreply at wordpress.org
Thu Aug 8 04:48:35 UTC 2013
#14958: Add a "get_post" filter to get_post()
-----------------------------+-----------------------------
Reporter: mikeschinkel | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Query | Version:
Severity: normal | Resolution:
Keywords: has-patch close |
-----------------------------+-----------------------------
Changes (by wonderboymusic):
* keywords: 2nd-opinion has-patch dev-feedback => has-patch close
Comment:
`get_post()` returns a `WP_Post` instance - you can decorate that.
{{{
$post = get_post( $id );
$post->extra = 'sauce';
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14958#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list