Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

External Media: add toggle for feature in Jetpack settings #41755

Open
rfischmann opened this issue Feb 12, 2025 · 5 comments
Open

External Media: add toggle for feature in Jetpack settings #41755

rfischmann opened this issue Feb 12, 2025 · 5 comments
Labels
[Experiment] AI labels added [Extension] External Media Extend all block editor media tools to support external providers [Feature] External Media [Feature] Images [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Type] Enhancement Changes to an existing feature — removing, adding, or changing parts of it

Comments

@rfischmann
Copy link

Impacted plugin

Jetpack

What

Jetpack is a multi-purpose plugin, so every feature it offers should be modular

How

I'm creating this issue based on the discussion here: https://wordpress.org/support/topic/how-to-disable-the-menu-for-featured-images/

After installing Jetpack 14.3, I noticed a new menu with a few options when we click a post's featured image: https://d.pr/i/s6Ghar

I don't use and am not interested in any of those. Thus, Jetpack is making us click twice to get to the same place we used to get before with one click (WordPress' native media gallery). We should be able to disable this feature.

@rfischmann rfischmann added the [Type] Enhancement Changes to an existing feature — removing, adding, or changing parts of it label Feb 12, 2025
@github-actions github-actions bot added [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Feature Group] Content Management Features related to the tools and screens that admins use to manage their sites core content. [Feature] Images [Feature] Monitor [Feature] Site Settings All other general site settings. labels Feb 12, 2025
Copy link
Contributor

OpenAI suggested the following labels for this issue:

  • [Feature Group] Content Management: The issue deals with managing Jetpack's features, which impacts how users manage their website's content.
  • [Feature] Monitor: The request suggests enabling or disabling features, which relates to monitoring and managing what features are actively used.
  • [Feature] Images: The issue refers to features linked to the media gallery and images within Jetpack.
  • [Feature] Site Settings: This enhancement aims to provide users with greater control over their site settings by allowing feature toggling.

@jeherve jeherve added [Extension] External Media Extend all block editor media tools to support external providers [Feature] External Media and removed [Feature] Monitor [Feature Group] Content Management Features related to the tools and screens that admins use to manage their sites core content. [Feature] Site Settings All other general site settings. labels Feb 12, 2025
@jeherve
Copy link
Member

jeherve commented Feb 12, 2025

While there isn't a way to do it via a toggle right now, you can add this code snippet to your theme's functions.php or a code snippets plugin on your site to disable the feature:

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;
} );

@jeherve jeherve changed the title Enhancement: allow users to enable/disable each of Jetpack's features External Media: add toggle for feature in Jetpack settings Feb 12, 2025
@rfischmann
Copy link
Author

While there isn't a way to do it via a toggle right now, you can add this code snippet to your theme's functions.php or a code snippets plugin on your site to disable the feature:

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;
} );

Wow, I really appreciate that @jeherve! However, it didn't make any difference for us. Are you sure the code is correct/complete? Thanks.

@jeherve
Copy link
Member

jeherve commented Feb 12, 2025

I got a bit ahead of myself, sorry about that! This code snippet currently only works when using the development or beta version of the plugin. You'll need to wait until the next Jetpack release for it to work on your site.

@rfischmann
Copy link
Author

I got a bit ahead of myself, sorry about that! This code snippet currently only works when using the development or beta version of the plugin. You'll need to wait until the next Jetpack release for it to work on your site.

Oh, I see. No worries, thanks! I'll wait.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Experiment] AI labels added [Extension] External Media Extend all block editor media tools to support external providers [Feature] External Media [Feature] Images [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Type] Enhancement Changes to an existing feature — removing, adding, or changing parts of it
Projects
None yet
Development

No branches or pull requests

2 participants