Tavarez: Thats kinda like cheating tho 😛
Sachez: If you want the regular text widget to handle shortcodes, drop this in functions.php or your plugin: add_filter’widget_text’, ‘do_shortcode’;
Sachez: No, it’s being efficient
Carney: Hello again. So, custom plugin development, need to tailor the media manager functionality a bit but I can’t seem to find any docs on how to do that. Any thoughts?
Radeke: Ahhh. wp_send_json_success$return; /// naes.
Nishida: Carney: depends on what you’re tailoring.
Carney: Esentially, I have several DJ’s. Each has a podcast show they produce and post everyday. Esentially, I want these dj’s to only see media filtered by type podcast and organized similar to how uploads are already organized /year/month/ etc.
Halmes: Carney: so you’re talking about the main media manage page. not the media modal window?
Samanlego: Carney: thats a big project but there are plugins out there that do almost exactly what you want.
Carney: Guimares: I am referring more to the modal. I figured it would be an undertaking. I had looked at some other plugins but I think there may be an issue integrating them with ACL and our custom podcast plugin.
Tavarez: Is there any specific method for including js and css files into the shortcode output? or should i just hardcode it including plugin_dir_url __FILE__ ?
Sachez: If your js is in a file, you should enqueue it
Heaslip: Afmza: do you mean conditionally load it only if it sees the shortcode?
Hankins: Afmza: thats not really possible because the entire content and page has to load before it knows if the shortcode is added to a page
Rodreguez: Afmza: so just load it by default IMHO
Tavarez: You have a good point
Okeefe: Carney: the modal is even a bigger undertaking. The modal uses backbone.js for all of MVC . basically for everything
Tavarez: Guimares, u have a url for loading libraries?
Carney: Guimares: Yikes. I am familiar w/ js and backbone. But I certainly don’t have the time for that on this.
Tauer: Carney: its hugely time consuming. Its a big project
Tavarez: Guimares, im unsure how to load a laod a js or css cl*** “by default”
Lanosga: Afmza: what Sachez said.
Bein: Afmza: https://codex.----escape_autolink_uri:a03ded6cd97ffffa8f7b4e1454f3eecc----.org/Plugin_API/Action_Reference/wp_enqueue_scripts
Tavarez: Okay same way as with widget.
Kilby: BOGO: thats some ugly as hell markup
Muss: Afmza: enqueueing scripts is the same no matter where you are
Laggan: Yah and one I dont get how the hell to fix
Bonilla: BOGO: well. thats not a WOrdPress problem
Borroel: BOGO: so. there’s that.
Miklos: Fwiw, error #2 likely tells you how to fix error #1
Mayben: Dcr: https://core.trac.----escape_autolink_uri:a03ded6cd97ffffa8f7b4e1454f3eecc----.org/ticket/2
Cassanova: Dcr: https://core.trac.----escape_autolink_uri:a03ded6cd97ffffa8f7b4e1454f3eecc----.org/ticket/1
Carney: Guimares: How about adding a custom button next to “Add Media”. How does that work?
Handel: BOGO: nope. not relating to WP at all. its a problem with your markup
Niemiel: Carney: how about it?
Sachez: And it’s pointless because it does not prevent your stie from working
Phalen: Does the wp.media attachment object have an alt text attribute attachment.alt?
Curle: To answer my own question, yes it does. Thank you everyone for being a part of this.
Carney: Guimares: How can I create a new directory within the “uploads” directory as a part of my plugin installation script?
Hoit: Carney: https://codex.----escape_autolink_uri:a03ded6cd97ffffa8f7b4e1454f3eecc----.org/Function_Reference/wp_mkdir_p
Sachez: Moving REST into core: https://make.----escape_autolink_uri:a03ded6cd97ffffa8f7b4e1454f3eecc----.org/core/2015/09/21/wp-rest-api-merge-proposal/
Throgmorton: Http://sheetsu.com/ pretty cool
Rather: A media file— what it’s “attached” to — is that just the parent?