Skip to content

Instantly share code, notes, and snippets.

View primathon's full-sized avatar

primathon primathon

  • Earth
View GitHub Profile
<?php
/**
* Allow third-parties to filter whether the customer can renew a subscription early.
*
* @since 2.3.0
*
* @param bool $can_renew_early Whether early renewal is permitted.
* @param WC_Subscription $subscription The subscription being renewed early.
* @param int $user_id The user's ID.
* @param string $reason The reason why the subscription cannot be renewed early. Empty
@primathon
primathon / index.html
Last active August 29, 2015 14:08
AngularJS API Frontend "hello world" Example
<!--
Some words about what's going on here: http://colinmccann.com/angularjs-api-frontend
GitHub Gist: https://gist.github.com/primathon/4ccb35ad6ddece4af1db
Live Plunkr Demo: http://embed.plnkr.co/fUIHDw/preview
-->
<!doctype html>
<html lang="en" ng-app="app">
<head>
<meta charset="UTF-8">