apply_filters ( 'jetpack_force_enable_gallery_widget', bool false )

Allow the Gallery Widget to be enabled even when Core supports the Media Gallery Widget

Source file: modules/widgets/gallery.php

View in GitHub

Parameters

false

(bool) false Whether to force-enable the gallery widget


Changelog

Since: Jetpack 5.5.0


Notes

You can use this filter to always use the old Jetpack Gallery Widget instead of the new Gallery Widget added to WordPress in version 4.9.

add_filter( 'jetpack_force_enable_gallery_widget', '__return_true' );

Have a note to contribute?

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Comments

  1. Core Magazines says:

    Could you include ‘detailed’ instructions on how and where to implement the code for the widgets. Photo widgets seem fine but videos on the home page of the 2014 theme are all lost.

    • Igor Zinovyev says:

      To use this filter you just need to copy and paste the code in the Notes section somewhere in your WordPress site code. But I’m afraid this won’t change anything about the way Jetpack handles videos. If you have a problem with sidebar widgets, can you please create a new support ticket? Our Happiness Engineers will be glad to help you.