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
<?xml version="1.0" encoding="UTF-8"?> | |
<phpunit backupGlobals="false" | |
backupStaticAttributes="false" | |
bootstrap="../../../wp-load.php" | |
colors="true" | |
convertErrorsToExceptions="true" | |
convertNoticesToExceptions="true" | |
convertWarningsToExceptions="true" | |
processIsolation="false" | |
stopOnFailure="false"> |
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
=SUMPRODUCT(MID(0&E2, LARGE(INDEX(ISNUMBER(--MID(E2, ROW(INDIRECT("1:"&LEN(E2))), 1)) * ROW(INDIRECT("1:"&LEN(E2))), 0), ROW(INDIRECT("1:"&LEN(E2))))+1, 1) * 10^ROW(INDIRECT("1:"&LEN(E2)))/10), |
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 -e | |
clear | |
echo "============================================" | |
echo "WordPress Install Script" | |
echo "============================================" | |
echo "Database Name: " | |
read -e dbname | |
echo "Database User: " | |
read -e dbuser | |
echo "Database Password: " |
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
/** | |
* Call external API | |
* @param string $endPoint | |
* @param array $data | |
* @param array $headers | |
* @return OBJECT | |
*/ | |
function callApi($data,$headers,$endPoint='wp-json/wc/v2/orders',$method='POST'){ | |
return wp_remote_post( home_url($endPoint), array( |
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 if (is_cart()) { ?> | |
<script type="text/javascript"> | |
// Each time quantity in the cart changes, trigger update | |
// cart option | |
jQuery('div.woocommerce').on('change', '.qty', function(){ | |
// Make sure the button is enabled before triggering the event | |
// otherwise this won't work. | |
jQuery("[name='update_cart']").prop("disabled", false); | |
jQuery("[name='update_cart']").trigger("click"); | |
}); |
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 | |
/** | |
* SET URL BASED ON THE CURRENT URL | |
*/ | |
define('WP_SITEURL', $_SERVER['REQUEST_SCHEME'].'://'.$_SERVER['HTTP_HOST']); | |
define('WP_HOME', $_SERVER['REQUEST_SCHEME'].'://'.$_SERVER['HTTP_HOST']); | |
/** OTHER WORDPRESS CONFIGURATIONS **/ |
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
// from: http://stackoverflow.com/questions/2226920/how-to-monitor-clipboard-content-changes-in-c | |
/// <summary> | |
/// Provides notifications when the contents of the clipboard is updated. | |
/// </summary> | |
public sealed class ClipboardNotification | |
{ | |
/// <summary> | |
/// Occurs when the contents of the clipboard is updated. | |
/// </summary> |
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 CSV TO ARRAY | |
* @param string $filename | |
* @param string $delimiter | |
* @return | |
*/ | |
function csvToArray($filename='', $delimiter=','){ | |
if(!file_exists($filename) || !is_readable($filename)) | |
return FALSE; |
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
.ui-sortable-container { | |
overflow: auto; | |
-ms-overflow-x: hidden; | |
overflow-x: hidden; | |
} | |
.ui-sortable { | |
margin: 0; | |
list-style: none; | |
} |