Type: php
Delete unconfirmed users after 30 days
function spammersdeletion() { global $wpdb; $from = strtotime(‘-30 day’, time()); $wpdb->query(‘DELETE FROM wp_users WHERE DATE(user_registered) < "'.date('Y-m-d', $from).'"AND user_status = "2"'); } add_action('init','spammersdeletion');Continue reading
Hide other shipping methods when free shipping is selected
add_action(‘wp_footer’, ‘fitboots_hide_other_shipping_methods_when_free’); function fitboots_hide_other_shipping_methods_when_free() { if (is_checkout()) { ?>Continue reading