2011-06-06, 14:35:32
(This post was last modified: 2011-06-06, 14:50:22 by kuba.sanitrak.)
mvlcek Wrote:I mean you're not able to use placeholders in custom fields if using both this plugin and I18N Custom Fields. If there was a hook for custom fields you could run your filter on that.sal Wrote:Am I right in thinking this plugin doesn't integrate with I18N Custom Fields out of the box?What do you mean? There should be no problems using both of them.
Code:
add_filter('content','dynpages_replace');
add_filter('custom_fields','dynpages_replace');
The reason I actually asked is because I was implementing the I18N Search plugin and found I couldn't use the (% searchform %) placeholder in a sidebar custom field, so the same hook could be used there too, with extra checks for the Custom Fields plugin being present if the hooks system doesn't already account for this.
Code:
add_filter('content','i18n_search_replace');
add_filter('custom_fields','i18n_search_replace');
That said, it's no where near that easy, I'm sure.