Skip to content

Instantly share code, notes, and snippets.

View offroadkev's full-sized avatar
😎

Kev offroadkev

😎
  • Las Vegas, Nevada
View GitHub Profile
@offroadkev
offroadkev / test_wp_mail.php
Created February 25, 2016 20:27 — forked from butlerblog/test_wp_mail.php
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
<?php
/**
* @package Redirect to login if not logged in
* @version 1.3
*/
/*
Plugin Name: Redirect to login if not logged in
Plugin URI: http://wordpress.org/plugins/redirect-to-login-if-not-logged-in/
Description: Redirect to wp-login.php if user is not logged in.
Author: Daan Kortenbach