This file contains hidden or 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
//Woocommerce Checkout JS events | |
$( document.body ).trigger( 'init_checkout' ); | |
$( document.body ).trigger( 'payment_method_selected' ); | |
$( document.body ).trigger( 'update_checkout' ); | |
$( document.body ).trigger( 'updated_checkout' ); | |
$( document.body ).trigger( 'checkout_error' ); | |
//Woocommerce cart page JS events | |
$( document.body ).trigger( 'wc_cart_emptied' ); | |
$( document.body ).trigger( 'update_checkout' ); |
This file contains hidden or 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 | |
/** | |
* Function that will prepopulate the previous logged-in user entry | |
* | |
*@author Johan De Reiziger | |
*@link <https://geekontheroad.com> | |
*/ | |
This file contains hidden or 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 | |
/** | |
* This function will prefill every field with its Field ID number | |
* Email, address and phone fields are also supported | |
* Radio buttons will select its first option by default. | |
* | |
* Change the number 8 below to the number of your form. eg: gform_pre_render_FORMID | |
* | |
*@author Johan De Reiziger | |
*@link https://geekontheroad.com |
This file contains hidden or 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 | |
/** | |
* ----------------------------------------------------------------------------------------- | |
* Based on `https://github.com/mecha-cms/mecha-cms/blob/master/system/kernel/converter.php` | |
* ----------------------------------------------------------------------------------------- | |
*/ | |
// HTML Minifier | |
function minify_html($input) { |
This file contains hidden or 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
/** | |
* This CSS snippet is meant to force the correct alignment for the Live summary for Gravity Forms plugin | |
* | |
* For plugin: https://geekontheroad.com/live-summary-for-gravity-forms | |
* @author Johan d'Hollander | |
***/ | |
.gotrgf_form_overview_container > .gotrgf_summary_lines > .gotrgf_summary_line > .gotrgf_line_part_left { | |
text-align: left !important; | |
width: 40% !important; |
This file contains hidden or 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
/** | |
* This snippet will add a datepicker to the list field of Gravity Forms. | |
* Just copy paste this snippet and complete the configuration at the bottom | |
* Also make sure that Jquery UI is loaded otherwise this won't work (<script src="https://code.jquery.com/ui/1.13.2/jquery-ui.js"></script>) | |
* | |
* @author Johan d'Hollander | |
* @link <https://geekontheroad.com> | |
**/ | |
jQuery(document).ready(function() { |
This file contains hidden or 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 | |
/** | |
* Class to add row action link to GF entries list table. | |
* | |
* @package BDFGF\Helpers | |
*/ | |
namespace BDFGF\Helpers; | |
/** |
This file contains hidden or 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 | |
/** | |
* This will output all styles with their handle and file location | |
* | |
* Shortcode: [gotr_enqueued_css] | |
* | |
* @author https://geekontheroad.com | |
***/ | |
function gotr_enqueued_css_shortcode() { |
OlderNewer