Constantinos Kouloumbris
Member
Posted 6 years ago #
Hi,
I am writing a plugin and that uses custom fields.
When the user is editing a post that has a custom field that my plugin is using then i would like it to be hidden from listing, because the plugin is already passing a checkbox that can update the meta data.
Does anyone know how can my plugin add something like class='hidden' each time a meta data listing is done and the key is equal to 'img'.?
Joshua Sigar
Member
Posted 6 years ago #
I don't really get the context, but I suppose you could utilize javascript, particularly DOM scripting, to achieve your purpose.
Constantinos Kouloumbris
Member
Posted 6 years ago #
Lets say you have a custom field called img. What I am asking is that if there is a way for a plugin to hide that custom field from being displayed while you edit a post that it's is already set to a value.
I was looking into something like add_filter
Joshua Sigar
Member
Posted 6 years ago #
A quick glance at the source code turns up no filter.