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 | |
| /** | |
| * Facebook Webhook handler example | |
| * | |
| * @see https://fb.me/webhooks | |
| * @author Tom (https://github.com/tominon) | |
| */ | |
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
| { "keys": ["ctrl+alt+p"], "command": "prompt_select_workspace" } |
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
| /* | |
| Based on: http://wordpress.stackexchange.com/questions/42652/#answer-42729 | |
| These functions provide a simple way to interact with TinyMCE (wp_editor) visual editor. | |
| This is the same thing that WordPress does, but a tad more intuitive. | |
| Additionally, this works for any editor - not just the "content" editor. | |
| Usage: |
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
| define("DOMAIN", "test.se"); | |
| define("MAILGUN_API", "XXX123"); // Mailgun Private API Key | |
| function br2nl($string) { | |
| return preg_replace('/\<br(\s*)?\/?\>/i', "\n", $string); | |
| } | |
| function mg_send($to, $subject, $message) { | |
| $ch = curl_init(); |
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 | |
| /** | |
| * Convert a comma separated file into an associated array. | |
| * The first row should contain the array keys. | |
| * | |
| * Example: | |
| * | |
| * @param string $filename Path to the CSV file | |
| * @param string $delimiter The separator used in the file | |
| * @return array |