Skip to:
Content
Pages
Categories
Search
Top
Bottom

Embed media cannot be switched off

  • @iriteser

    Participant

    Hi there

    I do not want to include embedded content like Youtube. I deactivate it via Settings- Forums, but after saving it is again activated. This is a mess due to data protections issues in Germany.

    But this is not for everthing: e.g. Instagram is shown as simple link, Youtube as embedded

    I use

    Wordpress 6.9
    bbPress 2.6.14

    my website: https://fab50s.de/ (most of the content including forum is behind paywall)

    I also use:
    Borlabs Cookies
    Memberpress
    Theme: Tove (FSE)

    Can anyone help me??

    LG Irit

Viewing 13 replies - 1 through 13 (of 13 total)
  • @robin-w

    Moderator

    ok, so are you saying that in settings forums on

    Auto-embed links

    you unset this and click save changes at the bottom of the page, but when you look again, this setting is still ticked?

    or is it unticked, but changing it makes no difference?

    @iriteser

    Participant

    sorry, no native speaker
    1) I untick
    2) I save
    3) it is ticked again

    @robin-w

    Moderator

    ummm, ok I have not seen this happen before.

    As a test, can you untick another option and save – I need to work out if it is that setting or any setting on that page that is not working.

    @iriteser

    Participant

    I unticked nearly every option and it all works fine

    I use wordpress for a long time and I never saw something like this. Perhaps it has to do with Borlabs Cookies?? I am very restrictive with cookies and scripts, I have only the absolutely necessary stuff (as said… GDPR)

    @robin-w

    Moderator

    ok, sorry to sound like I do not believe you, I do, but I need to be very sure what is happening especially as we are using different languages 🙂

    so to summarise:

    Changing any OTHER item in settings>forums works and saves ok
    changing settings>forums>Auto-embed links to untick this and then save – It still shows as ticked

    Yes?

    @iriteser

    Participant

    correct!

    I can make a quick video to show, but not sure how to upload

    @iriteser

    Participant

    just some additional information: because I use a FSE theme I installed the plugin Enable bbPress for Block Themes

    @robin-w

    Moderator

    thanks, just tried that with Enable bbPress for Block Themes and twenty twenty five, and no problems.

    What theme are you using? and do you have any customized functions?

    @iriteser

    Participant

    I use Tove from Anders Noren and of course with a child theme

    what do you mean with customized functions? I have a lot of code in my functions.php, but mainly for my customized loops, favorites plugin, styling comment function (not visible for not-logged-in users), Text to speech plugin, memberpress

    nothing with embedded objects

    @robin-w

    Moderator

    Thanks, and yes I was considering whether a function in your child theme might be affecting this.

    so since you can test easily (that is untick the option, save and see if it remains unticked), then my next step would be to see what could be affecting this.

    So my next step would be that it could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentytwenty, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Then come back

    @iriteser

    Participant

    ok, but this will take some time. Currently working in production environment, I have to set up a staging environment and not sure if this works due to memberpress, stripe/paypal connection and so on

    Question: thinking about deactivate Auto-Embeds in WordPress completely with some code – what do you think?

    add_action( ‘init’, function() {

    global $wp_embed;
    if ( $wp_embed instanceof WP_Embed ) {

    remove_filter( ‘the_content’, array( $wp_embed, ‘autoembed’ ), 8 );
    remove_filter( ‘the_content’, array( $wp_embed, ‘run_shortcode’ ), 8 );
    }

    add_filter( ’embed_oembed_discover’, ‘__return_false’ );
    add_filter( ‘pre_oembed_result’, ‘__return_false’ );

    if ( function_exists( ‘remove_filter’ ) ) {
    remove_filter( ‘bbp_get_topic_content’, ‘bbp_topic_content_autoembed’, 2 );
    remove_filter( ‘bbp_get_reply_content’, ‘bbp_reply_content_autoembed’, 2 );
    }
    }, 20);

    @robin-w

    Moderator

    that would be worth trying.

    untested, but you could first try

    add_filter ('bbp_use_autoembed', 'rew_turn_off', 20,1 ) ;
    
    function rew_turn_off ($value) {
    	return false ;
    }

    @iriteser

    Participant

    added the code, it works

    but still astonished how something like this effect can happen

Viewing 13 replies - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.
Skip to toolbar