Viewing 1 replies (of 1 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    Hey there! We did indeed make some changes and improvements to the feature in the past release, and as a result that code snippet no longer works. If you’d like to disable those external image sources, you can use the following code snippet instead:

    add_filter(
    'jetpack_tools_to_include',
    function ( $tools ) {
    $index = array_search( 'external-media/external-media.php', $tools, true );
    if ( $index ) {
    unset( $tools[ $index ] );
    }
    return $tools;
    }
    );
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.