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

Chris McCoy chris at lod.com
Tue Jul 22 23:59:38 UTC 2014


how are you doing the checkbox? attachment fields to edit?

On 2014-07-22, 5:52 PM, "BenderisGreat" <greglancaster71 at gmail.com> wrote:

>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-filte
>ring-SPECIFIC-post-galleries-by-ID-tp44175.html
>Sent from the Wordpress Hackers mailing list archive at Nabble.com.
>_______________________________________________
>wp-hackers mailing list
>wp-hackers at lists.automattic.com
>http://lists.automattic.com/mailman/listinfo/wp-hackers




More information about the wp-hackers mailing list