Date: [date]
Between us [company name] and you [customer name].
In short; neither of us will share any confidential information about each-other, by any means, with anyone else.
| // Ref: https://github.com/skyverge/wc-plugins-snippets/blob/master/woocommerce-customer-order-csv-export/add-product-attributes-to-one-row-per-item-order-export.php | |
| /** | |
| * Adds size attribute to the one row per item order export | |
| * CANNOT be used with non-one row per item formats | |
| */ | |
| /** | |
| * Add a 'size' column to the export file | |
| * | |
| * @param array $headers | |
| * @return array |
| // Tweak Gravity Forms website field validator to insert protocol if missing (assumes http) | |
| // Ref: https://www.itsupportguides.com/knowledge-base/gravity-forms/gravity-forms-how-to-automatically-add-http-to-submitted-website-field-values-before-validation/ | |
| add_filter( 'gform_pre_render', 'itsg_check_website_field_value' ); | |
| add_filter( 'gform_pre_validation', 'itsg_check_website_field_value' ); | |
| function itsg_check_website_field_value( $form ) { | |
| foreach ( $form['fields'] as &$field ) { // for all form fields | |
| if ( 'website' == $field['type'] || ( isset( $field['inputType'] ) && 'website' == $field['inputType']) ) { // select the fields that are 'website' type | |
| $value = RGFormsModel::get_field_value($field); // get the value of the field | |
| if (! empty($value) ) { // if value not empty | |
| $field_id = $field['id']; // get the field id |
| // We will make use of widget_title filter to | |
| //dynamically replace custom tags with html tags | |
| add_filter( 'widget_title', 'accept_html_widget_title' ); | |
| function accept_html_widget_title( $mytitle ) { | |
| // The sequence of String Replacement is important!! | |
| $mytitle = str_replace( '[link', '<a', $mytitle ); | |
| $mytitle = str_replace( '[/link]', '</a>', $mytitle ); |
| add_action( 'wp_enqueue_scripts', 'sk_disable_simple_social_icons_styles', 11 ); | |
| function sk_disable_simple_social_icons_styles() { | |
| if ( class_exists( 'Simple_Social_Icons_Widget' ) ) { | |
| /** Dequeue icon styles */ | |
| wp_dequeue_style( 'simple-social-icons-font'); | |
| } |
| add_filter( 'gform_enable_field_label_visibility_settings', '__return_true' ); |
| //* Customize search form input box text | |
| //* Ref: https://my.studiopress.com/snippets/search-form/ | |
| add_filter( 'genesis_search_text', 'sp_search_text' ); | |
| function sp_search_text( $text ) { | |
| // return esc_attr( 'Search my blog...' ); | |
| return esc_attr( 'Seach ' . get_bloginfo( $show, 'display' )); | |
| get_permalink(); | |
| } |
| ::-moz-placeholder { | |
| color: #a5a6a4; | |
| /*color: #20221d;*/ | |
| font-weight: 100; | |
| opacity: 1; |
| /** | |
| * Add an insurance surcharge to your cart / checkout | |
| * change the insurance amount based on value of cart | |
| * Uses the WooCommerce fees API | |
| * | |
| */ | |
| add_action( 'woocommerce_cart_calculate_fees','woocommerce_custom_surcharge' ); | |
| function woocommerce_custom_surcharge() { | |
| global $woocommerce; |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |