Create Additional Formats for the Date Field

/* Add additional formats for the Date field Date Picker. Original doc link: https://wpforms.com/developers/how-to-create-additional-formats-for-the-date-field/ For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_dev_date_field_formats( $formats ) { // Item key is JS date character – see https://flatpickr.js.org/formatting/ // Item value is in…Continue reading

MA GDPR YouTube

/* Plugin Name: MA GDPR YouTube Description: GDPR compliant YouTube video embedding Author: Matthias Altmann Project: Code Snippet: GDPR Compliant YouTube Embed Version: 1.2.0 Plugin URI: https://www.altmann.de/blog/code-snippet-gdpr-compliant-youtube-videos/ Description: en: https://www.altmann.de/blog/code-snippet-gdpr-compliant-youtube-videos/ de: https://www.altmann.de/blog/code-snippet-dsgvo-konforme-youtube-videos/ Copyright: © 2021-2022, Matthias Altmann Version History: Date…Continue reading

WhatsApp Button to WooCommerce Single Product Pages

/** * Enqueue script and styles for child theme */ function woodmart_child_enqueue_styles() { wp_enqueue_style( ‘child-style’, get_stylesheet_directory_uri() . ‘/style.css’, array( ‘woodmart-style’ ), woodmart_get_theme_info( ‘Version’ ) ); } add_action( ‘wp_enqueue_scripts’, ‘woodmart_child_enqueue_styles’, 10010 ); define(‘ALLOW_UNFILTERED_UPLOADS’, true); function add_whatsapp_buttonlux() { ?> // Please enter…Continue reading

Increase the max file size limit in WordPress

/* Increase WordPress upload size, post size, and max execution time Original doc link: https://wpforms.com/how-to-change-max-file-upload-size-in-wordpress/ For support, please visit: https://www.facebook.com/groups/wpformsvip */ @ini_set( ‘upload_max_size’ , ‘256M’ ); @ini_set( ‘post_max_size’, ‘256M’); @ini_set( ‘max_execution_time’, ‘300’ );Continue reading