print_media_templates & filtering SPECIFIC post galleries by ID

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

print_media_templates & filtering SPECIFIC post galleries by ID

BenderisGreat
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/ )

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?  
Reply | Threaded
Open this post in threaded view
|

Re: print_media_templates & filtering SPECIFIC post galleries by ID

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

On 2014-07-22, 5:52 PM, "BenderisGreat" <[hidden email]> 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
>[hidden email]
>http://lists.automattic.com/mailman/listinfo/wp-hackers


_______________________________________________
wp-hackers mailing list
[hidden email]
http://lists.automattic.com/mailman/listinfo/wp-hackers