This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
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"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 |