Floating Social Media Icons (copy)

// Define social media links $facebook_link = ‘https://facebook.com/fb’; $twitter_link = ‘https://youtube.com/@yt’; $instagram_link = ‘https://instagram.com/ig’; echo ‘ .floating-social-icons { position: fixed; top: 50%; left: 0; transform: translateY(-50%); z-index: 1000; } .floating-social-icons a { display: block; margin: 5px 0; width: 40px; height:…Continue reading

WP Simple Pay: Add Email Address to Payment Confirmation URL

add_action( ‘template_redirect’, function() { if ( ! function_exists( ‘\SimplePay\Core\Payments\Payment_Confirmation\get_confirmation_data’ ) ) { return; } $data = \SimplePay\Core\Payments\Payment_Confirmation\get_confirmation_data(); if ( empty( $data ) ) { return; } $customer = $data[‘customer’]; $email = $customer->email; if ( isset( $_GET[’email’] ) ) { return;…Continue reading

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