Trippetchz
Forum Replies Created
-
Forum: Plugins
In reply to: [Lightbox with PhotoSwipe] Gutenberg Gallery Block Captions not showingThank you so much for this!
Forum: Fixing WordPress
In reply to: Disable all oembed_providers except TwitterPS this doesn’t work in functions.php nor as a simple plugin:
function filter_oembed_provider_list( $providers ) { // edit the whitelist to your needs // $whitelist = array( 'youtu', 'twitter' ); $whitelist = array( 'twitter' ); $output = array(); foreach( $providers as $key => $provider ) { foreach( $whitelist as $allowed ) { if( stristr( $key, $allowed ) ) $output[$key] = $provider; } } return $output; } add_filter( 'oembed_providers' , 'filter_oembed_provider_list', 999 );- This reply was modified 6 years, 6 months ago by Trippetchz.
Forum: Fixing WordPress
In reply to: Disable all oembed_providers except TwitterOkay thanks, but the solution is still not clear. I’m looking for an answer with code and where to put it, as I don’t know how to do this.
Thanks!
Forum: Fixing WordPress
In reply to: Disable all oembed_providers except TwitterHi there,
Thanks for your note.
How do I do what you’ve suggested? There are no examples on that link.
I’ve also got no idea where to put code either. Stackoverflow suggested functions.php but I’ve also seen people suggesting it needs to be a plugin because the oEmbed stuff is initialised before the theme…
Thanks.
- This reply was modified 6 years, 6 months ago by Trippetchz.
- This reply was modified 6 years, 6 months ago by Trippetchz.
Did you get it?
Thanks so much for following up.
I’ll write you now on the Contact Form. Thanks.
- This reply was modified 6 years, 6 months ago by Trippetchz.
Forum: Plugins
In reply to: [Hyper Cache] x-hyper-cache: “continue – no file”Please?
Thank you for your fast reply!
- This reply was modified 6 years, 7 months ago by Trippetchz.
- This reply was modified 6 years, 7 months ago by Trippetchz.
- This reply was modified 6 years, 7 months ago by Trippetchz.
Forum: Hacks
In reply to: Upload to different pathHi there
Thanks for your reply.BUT I’d like to still use the path specified at Settings -> Media -> Uploading Files -> store folder
It’s just that when http://blahblah.com/wp-admin/media-upload.php?type=image&differentpath=yes is called, it uploads to a specified, hardcoded path DIFFERENT to the one specified in Settings -> Media -> Uploading Files -> store folder