Removing extra fields from an attachment instance
-
Hi,
I was trying to remove all the extra fields (like “caption” or “title”) for my Attachments instance. My first attempt was to pass
nullas the value of thefieldsproperty but I get the next exception:Warning: Invalid argument supplied for foreach() in ...wp-content/plugins/attachments/classes/class.attachments.php on line 1400Probably I’m trying to do it the wrong way, how else can I remove all the extra fields?
The topic ‘Removing extra fields from an attachment instance’ is closed to new replies.