Skip to content

Instantly share code, notes, and snippets.

@zackkatz
Created July 12, 2014 19:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zackkatz/bfbddab280ae48202b69 to your computer and use it in GitHub Desktop.
Save zackkatz/bfbddab280ae48202b69 to your computer and use it in GitHub Desktop.
The Debug Bar plugin breaks on Gravity Forms admin pages when No Conflict Mode is turned on. This plugin fixes that issue.
<?php
/*
Plugin Name: Debug Bar for Gravity Forms No-Conflict Mode
Plugin URI: http://katz.co
Description: Enable debug bar when Gravity Forms has No Conflict Mode on.
Version: 1.0
Author: Katz Web Services, Inc.
Author URI: http://katz.co
*/
add_filter( 'gform_noconflict_scripts', 'debug_bar_add_gf_noconflict');
add_filter( 'gform_noconflict_styles', 'debug_bar_add_gf_noconflict');
function debug_bar_add_gf_noconflict( $items ) {
$items[] = 'debug-bar';
return $items;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment