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 | |
// Form a list of all CF IP zones | |
// For each zone, grab all A records and TXT records matching $oldip | |
// For each matching record, update it to the new IP address | |
// Does not deal with paginated zone results so there's currently | |
// a maximum of 50 zones managed by this tool | |
$authemail = "YOU @ YOUR EMAIL . COM"; | |
$authkey = "YOUR CLOUDFLARE API KEY"; |
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
/* | |
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: |