Skip to content

Instantly share code, notes, and snippets.

View mslinnea's full-sized avatar
🏠
Working from home

Linnea Huxford mslinnea

🏠
Working from home
View GitHub Profile
@mslinnea
mslinnea / create-coauthor.php
Last active October 8, 2017 15:09
Create CoAuthor for WordPress Coauthors Plus CAP Plugin
<?php
/**
* Creates a CoAuthor and returns the user_nicename.
* Returns false if the author couldn't be created.
*
* @param $author_name string Author Name.
*
* @return false|string
*/
function create_and_get_author( $author_name ) {
@mslinnea
mslinnea / twilio-text-yourself.php
Last active February 15, 2017 14:02
Use Twilio to Text Yourself
<?php
// Add the Twilio library via composer
require_once( __DIR__ . '/vendor/autoload.php' );
// Use the Twilio REST API Client
use Twilio\Rest\Client;
class Twilio_Gateway {
// Fill these in - see your Twilio dashboard