Skip to content

Instantly share code, notes, and snippets.

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/a5f39924d82f976a6c7c to your computer and use it in GitHub Desktop.
Save zackkatz/a5f39924d82f976a6c7c to your computer and use it in GitHub Desktop.
Enable custom class for GravityView widgets. Requires GravityView 1.5.4 or higher.
<?php
/**
* Enable custom class for GravityView widgets. Requires GravityView 1.5.4 or higher.
*
* @param boolean False by default. Return true if you want to enable.
* @param GravityView_Widget Current instance of GravityView_Widget
*/
add_filter('gravityview/widget/enable_custom_class', '__return_true' );
@Udaykiran24
Copy link

Please tell me where to add this code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment