[wp-hackers] Running a filter on a custom field

Nicholas Ciske nl at thoughtrefinery.com
Sat Jan 11 19:25:12 UTC 2014


You can filter meta data as it's retrieved from the DB.

Just make sure you're a good citizen and only filter your data ;-)

http://codex.wordpress.org/Function_Reference/get_metadata#Notes

_________________________
Nick Ciske
http://thoughtrefinery.com/
@nciske	

On Jan 11, 2014, at 1:06 PM, Chris McCoy wrote:

> Anyway to run a filter on a custom field, for those plugins that don¹t use
> the shortcode api, and run a regex on the_content, so for example I have a
> url and want to use the shortcode on that value, normally would do
> do_shortcode($value);



More information about the wp-hackers mailing list