This file contains hidden or 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 | |
| $token = '***********'; | |
| $code = '*************'; | |
| $response = wp_remote_get( | |
| 'https://api.envato.com/v3/market/buyer/purchase?code=' . $code, | |
| [ | |
| 'headers' => [ | |
| 'Authorization' => 'Bearer ' . $token, |
This file contains hidden or 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
| #!/bin/bash | |
| # Set environment | |
| PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
| # Status Output Functions. | |
| RED_BOLD='\033[1;31m' | |
| GREEN_BOLD='\033[1;32m' | |
| BLUE_BOLD='\033[1;34m' | |
| YELLOW_BOLD='\033[1;33m' |
This file contains hidden or 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 | |
| /** | |
| * | |
| * Retrieves the date, in specified timezone and format. | |
| * | |
| * @param int|string $timestamp Unix timestamp. | |
| * @param string $timezone GMT Offset or timezone string to output result in. | |
| * E.G. +0400 or Asia/Dubai, +0630 or Asia/Dhaka etc. | |
| * @param string $format Optional. PHP date format. |
OlderNewer