Discussion:
print_media_templates & filtering SPECIFIC post galleries by ID
BenderisGreat
2014-07-22 21:52:48 UTC
Permalink
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.
Chris McCoy
2014-07-22 23:59:38 UTC
Permalink
how are you doing the checkbox? attachment fields to edit?
Post by 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/
<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?
--
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
http://lists.automattic.com/mailman/listinfo/wp-hackers
Loading...