[wp-hackers] print_media_templates & filtering SPECIFIC post galleries by ID

BenderisGreat greglancaster71 at gmail.com
Tue Jul 22 21:52:48 UTC 2014


I am trying to add a feature to a plugin, and just got stuck yesterday on how
to identify the specific post gallery ID that an option is being set for. 
In a nutshell, I added a checkbox to the Media Gallery ( see bottom right
checkbox here:  http://postimg.org/image/g423ozl5l/
<http://postimg.org/image/g423ozl5l/>   )

Now, I would like that option value to coincide with the specific post
gallery ID for filtering when the post is loaded.  This is where I am stuck. 
The print_media_templates filter accepts no arguments, and returns no value. 
So, I am not sure where the saving of that option value occurs at, or where
the galley ID is returned to.  

Could someone lend me a pair of eyes and share any possible solutions?  



--
View this message in context: http://wordpress-hackers.1065353.n5.nabble.com/print-media-templates-filtering-SPECIFIC-post-galleries-by-ID-tp44175.html
Sent from the Wordpress Hackers mailing list archive at Nabble.com.


More information about the wp-hackers mailing list