- Table of contents
- General information
- Terms
- General structure of a test
- WordPress-specific assertions and test functions
- enqueues
- creating posts
- creating terms
- attaching images
- ?
| <?php | |
| /* | |
| Custom WC Webhook Manager | |
| Add new webhook topic only for WC order completed. | |
| Developed by Md Jahidul Islam ( oneTarek ) https://onetarek.com | |
| */ | |
| //Don't allow direct access | |
| if( ! defined( 'ABSPATH' ) ) exit; |
| function getIP(host, recordType) { | |
| // Specify record type as per described here: https://en.wikipedia.org/wiki/List_of_DNS_record_types | |
| // For example, 'A', 'AAAA', 'NS', etc... | |
| // So your Google Sheets formula would be =getIP("www.example.com", "A") | |
| var url = "https://dns.google.com/resolve?name=" + host + "&type=" + recordType; | |
| var json = UrlFetchApp.fetch(url); | |
| var response = JSON.parse(json); | |
| var answer = response.Answer; | |
| var ip = ""; | |
| if (typeof answer != "undefined") { |
| window.onload = function() { | |
| var startPos; | |
| var startPosLat; | |
| var startPosLong; | |
| var distance; | |
| if (navigator.geolocation) { | |
| startPosLat = 44.95716993150707; | |
| startPosLong = -93.28439280496818; |
| @mixin keyframes($animation-name) { | |
| @-webkit-keyframes $animation-name { | |
| @content; | |
| } | |
| @-moz-keyframes $animation-name { | |
| @content; | |
| } | |
| @-ms-keyframes $animation-name { | |
| @content; | |
| } |