Ready to get started?Download WordPress


[resolved] Removing support for some oEmbed sites (5 posts)

  1. kevin heath
    Posted 1 year ago #


    just trying to find out where i put the

    <?php wp_oembed_remove_provider( $format ) ?>

    as I want to remove none video sites from autoembedding.

    does it go in the functions file or in the theme edit file?

    thanks and sorry if it seems a stupid question.


  2. kevin heath
    Posted 1 year ago #

    Do not worry.

    I should not have been so lazy and tried it out.

    It goes in functions file

  3. muskadan
    Posted 10 months ago #


    I might be confused but it doesn´t work for me. When I place the code :

    <?php wp_oembed_remove_provider( $format ) ?>

    to wp-content/themes/my-theme/functions.php, there is also a syntax error appearing while try to edit with dreamweaver, so I presume I do something wrong.

    Anyway I´m still able to post videos from that site.

    Thanks and sorry for this basic misunderstanding.


  4. kevin heath
    Posted 10 months ago #

    add a ; at the end so

    <?php wp_oembed_remove_provider( $format ); ?>

  5. muskadan
    Posted 10 months ago #

    OK I´ve found it :)

    The video is no longer supported which is o.k. but website subscribers are still able to place the code of the site removed and publish it or send it for revision, even if the video is not working.

    How is it possible to restrict subscriber to submit video for revision only from youtube, otherwise they can not proceed and no videopage will be created and sent to admin for revision?

    Thanks a lot.


Topic Closed

This topic has been closed to new replies.

About this Topic