This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
// don't forget to add a style for: | |
// `input[type="submit"].disabled, input[type="submit"].button-disabled, input[type="submit"]:disabled` | |
jQuery(function ($) { | |
$('form[id^="gform_"]').on('change', function (e) { | |
var $reqd = $(this).find('.gfield_contains_required.gfield_visibility_visible').filter(function (i, c) { | |
return [] | |
.concat($(c).find('input[type="text"], textarea').filter(function (i, fl) { return $(fl).val().length == 0; }).get()) | |
.concat($(c).find('input[type="checkbox"]').not(':checked').get()) | |
.length; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Plugin Name: Example Modify Price | |
*/ | |
class Example_Modify_Price { | |
private static $instance; | |
public static function register() { | |
if (self::$instance == null) { |