Discussion:
Running a filter on a custom field
Chris McCoy
2014-01-11 19:06:06 UTC
Permalink
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);
Nicholas Ciske
2014-01-11 19:25:12 UTC
Permalink
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
Post by Chris McCoy
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);
Continue reading on narkive:
Loading...