diff --git a/core/Loader/Loader.php b/core/Loader/Loader.php index 588239c92..1bc0df624 100644 --- a/core/Loader/Loader.php +++ b/core/Loader/Loader.php @@ -140,7 +140,7 @@ public function enqueue_media_browser() { * @return string */ protected function get_assets_context() { - return wp_script_is( 'wp-element' ) ? 'gutenberg' : 'classic'; + return apply_filters( 'carbon_fields_get_assets_context', wp_script_is( 'wp-element' ) ? 'gutenberg' : 'classic' ); } /**