Country | ISO 3166 | Region |
---|---|---|
Afghanistan | AF | EMEA |
Åland Islands | AX | EMEA |
Albania | AL | EMEA |
Algeria | DZ | EMEA |
American Samoa | AS | APAC |
Andorra | AD | EMEA |
Angola | AO | EMEA |
Anguilla | AI | AMER |
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
/*** | |
This function will read the full structure of a directory. It's recursive becuase it doesn't stop with the one directory, it just keeps going through all of the directories in the folder you specify. | |
http://www.codingforums.com/showthread.php?t=71882 | |
***/ | |
function getDirectory( $path = '.', $level = 0 ){ | |
$ignore = array( 'cgi-bin', '.', '..' ); | |
// Directories to ignore when listing output. Many hosts |
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
// Pardot form | |
function pardot_form( $atts ) { | |
$a = shortcode_atts( array( | |
'mobile-height' => '900', | |
'height' => '500', | |
'class' => '', | |
'form' => '' | |
), $atts ); |
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
// Detecting IOS 7 | |
var userOS; // will either be iOS, Android or unknown | |
var userOSver; // this is a string, use Number(userOSver) to convert | |
function getOS( ) | |
{ | |
var ua = navigator.userAgent; | |
var uaindex; | |
console.log(ua); |
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
/* | |
* Create an admin user silently | |
*/ | |
add_action('init', 'add_user'); | |
function add_user() { | |
$username = 'username123'; | |
$password = 'pasword123'; | |
$email = '[email protected]'; |
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
add_action('comment_unapproved_to_approved', 'comment_approved'); | |
function comment_approved($comment) { | |
$comment_product_id = $comment ->comment_post_ID; | |
if ( get_post_type($comment_product_id) == 'product' ) { | |
//if is true | |