Skip to content

Instantly share code, notes, and snippets.

View piotrkunicki's full-sized avatar

Piotr Kunicki piotrkunicki

View GitHub Profile
@CNick
CNick / Add link to WP password reset email - sans angled brackets
Last active May 8, 2018 09:51
Some email clients do not work well with angled brackets around links - which is the default format. This snippet will add another link to the password reset email without the angled brackets.
@butlerblog
butlerblog / test_wp_mail.php
Last active August 25, 2019 03:25
File for testing the wp_mail function http://b.utler.co/9L
<?php
/**
* This file can be used to validate that the WordPress wp_mail() function is working.
* To use, change the email address in $to below, save, and upload to your WP root.
* Then browse to the file in your browser.
*
* For full discussion and instructions, see the associated post here:
* http://b.utler.co/9L
*
* Author: Chad Butler
@bueltge
bueltge / gist:1016587
Created June 9, 2011 11:58
Include custom taxonomy term in WordPress search
via http://wordpress.stackexchange.com/questions/2623/include-custom-taxonomy-term-in-search/5404#5404
function atom_search_where($where){
global $wpdb;
if ( is_search() )
$where .= "OR (t.name LIKE '%".get_search_query() . "%' AND {$wpdb->posts} . post_status = 'publish')";
return $where;
}