Skip to content

Instantly share code, notes, and snippets.

View nszumowski's full-sized avatar
🏠
doin' stuff

Nick Szumowski nszumowski

🏠
doin' stuff
  • Burlington, VT
  • 01:56 (UTC -05:00)
View GitHub Profile
@nszumowski
nszumowski / gist:dd749d878d822948654cf1f42d3ac09f
Last active July 18, 2017 18:16 — forked from spencerfinnell/gist:71910ea539cb75187c8d988059ae367a
WP Job Manager - Jobify Theme - extended location plugin update
add_filter( 'wpjmel_ip_location_string', function( $string, $data ) {
return $data['city'] . ', ' . $data['region'];
}, 1, 2 );
// http://ip-api.com/json
@nszumowski
nszumowski / awesome-wordpress-favicons.php
Last active April 22, 2016 16:46 — forked from jhned/awesome-wordpress-favicons
Ever wanted to set up custom favicons in the WordPress admin or on the WordPress login screen? Well, now you can.
// First, create a function that includes the path to your favicon
function add_favicon() {
$favicon_url = get_stylesheet_directory_uri() . '/images/icons/admin-favicon.ico';
echo '<link rel="shortcut icon" href="' . $favicon_url . '" />';
}
// Now, just make sure that function runs when you're on the login page and admin pages
add_action('login_head', 'add_favicon');
add_action('admin_head', 'add_favicon');