Skip to content

Instantly share code, notes, and snippets.

@zackkatz
Created November 21, 2023 18:05
Show Gist options
  • Save zackkatz/02ead734fd514317fb751c3a1d215d37 to your computer and use it in GitHub Desktop.
Save zackkatz/02ead734fd514317fb751c3a1d215d37 to your computer and use it in GitHub Desktop.
GravityEdit - Filter the jQuery UI theme
<?php
/**
* @filter `gravityview-inline-edit/jquery-ui-theme` Modify the jQuery UI theme to use, if jQuery UI editor style is active
*
* @since 1.0
*
* @param string $jquery_ui_theme Name of jQuery UI theme to use. Default: "base"
*
* @see http://jqueryui.com/themeroller/#themeGallery for examples
*/
add_filter( 'gravityview-inline-edit/jquery-ui-theme', function( $old_theme = 'base' ) {
return 'dark-hive';
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment