Skip to content

Instantly share code, notes, and snippets.

@carmel
carmel / version-check.dart
Created May 9, 2019 06:10 — forked from naumanahmed19/version-check.dart
Flutter Force Update IOS and Android App Version
//Prompt users to update app if there is a new version available
//Uses url_launcher package
import 'package:url_launcher/url_launcher.dart';
const APP_STORE_URL =
'https://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftwareUpdate?id=YOUR-APP-ID&mt=8';
const PLAY_STORE_URL =
'https://play.google.com/store/apps/details?id=YOUR-APP-ID';
@webdados
webdados / invoicexpress-woocommerce-vat-field-class.php
Created February 22, 2019 17:13
InvoiceXpress for WooCommerce change VAT field class
<?php
// Add to your child theme functions.php file
add_filter( 'woocommerce_checkout_fields', function( $fields ) {
if ( isset( $fields['billing']['billing_VAT_code'] ) ) $fields['billing']['billing_VAT_code']['class'] = array( 'form-row-first' );
return $fields;
}, 60 )
@carlosleopoldo
carlosleopoldo / delete-orphans-usermeta.sql
Last active September 22, 2024 09:06
Delete all orphans user meta in WordPress
DELETE FROM wp_usermeta
WHERE NOT EXISTS (
SELECT * FROM wp_users
WHERE wp_usermeta.user_id = wp_users.ID
)