Problem with conditional woocommerce custom checkout field

Ok, I figured it out (finally) Instead of using the code above to add a new custom field, I changed it to this: add_filter( ‘woocommerce_checkout_fields’, ‘custom_override_checkout_fields’ ); function custom_override_checkout_fields ( $fields ) { $fields[‘order’][‘the_script’] = array ( woocommerce_form_field ( ‘the_script’, array( ‘type’ => ‘textarea’, ‘class’ => array(‘extracheckoutinfo form-row-wide’), ‘label’ => __(‘What is the script?’), ‘placeholder’ … Read more

Shows warning when enable “wp_gallery_custom_links” plugin with Themify Builder

I have resolved this issue finally by making changes directly in “/wp-content/themes/themify-ultra/themify/themify-builder/templates/template-gallery-grid.php”. Try to find below lines. $link_before=”” != $link ? sprintf( ”, esc_attr( $image->post_title ), esc_url( $link ) ) : ”; $link_before = apply_filters( ‘themify_builder_image_link_before’, $link_before, $image, $settings ); And replace with, $custom_link = get_post_meta( $image->ID, ‘_gallery_link_url’, true ); $custom_link_target = get_post_meta( $image->ID, ‘_gallery_link_target’, … Read more

Get input form data posted by users

The most straightforward way is to utilize the $_POST super global variable. For example, if the form had a field named post-text, you could access the posted data at $_POST[ ‘post-text’ ]. Of course, you’d want to sanitize it properly before using it.