![]() |
|
Custom data filters - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Custom data filters (/thread-8852.html) |
Custom data filters - amucklow - 2011-07-10 I posted over at the showcase about a site I'd made with a modifed admin-functions.php. It was pointed out to me that I could have used filters without modifying the core - so I tried them out. I'm customising the filter-custom_data.php plugin here. What I want to do is add 2 new custom fields (Price and Availability). Availability is a radio button with the values 'Sold' and 'For sale'. With the function Also, can you use the filters to remove certain fields from the layout? Custom data filters - sbillard - 2011-07-10 Multiple fields are (typically) stored by using serialize and unserialize on an array that is indexed by the fields. But of course you can use any means you want to indicate the separate items. I suggest you look at the You would be able to remove only those fields that are conditioned to be removed. For instance you could remove fields that another plugin was using custom data to implement. |