View gist:5f377bd3a5c794dda434cd2ed693f09a
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
// Enable WP_DEBUG mode | |
define( 'WP_DEBUG', true ); | |
// Enable Debug logging to the /wp-content/debug.log file | |
define( 'WP_DEBUG_LOG', true ); | |
// Disable display of errors and warnings | |
define( 'WP_DEBUG_DISPLAY', false ); | |
@ini_set( 'display_errors', 0 ); |
View url-parameters-to-wordpress-shortcodes.txt
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
//1. CAPTURE FIRST NAME FROM URL | |
function aa_first_name() { | |
$aa_first_name = $_GET["fname"]; | |
if (isset($aa_first_name)) { | |
$aa_first_name = ucfirst($aa_first_name); | |
return $aa_first_name; | |
} else { | |
return ''; | |
} | |
} |
View gist:5be7ee5cf3ca4602a2546ee73f49566e
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
tell application "System Events" | |
set myList to (name of every process) | |
end tell | |
if (myList contains "Google Chrome") is false then | |
do shell script "open -a Google\\ Chrome --new --args -incognito" | |
else | |
tell application "Google Chrome" | |
activate | |
tell application "System Events" to keystroke "n" using {command down, shift down} | |
open location "https://google.com/search?q=keyword+number+1" |
View gist:3a5284330720ae1ee475c9c712bde7fe
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
function remove_cssjs_ver( $src ) { | |
if( strpos( $src, '?ver=' ) ) | |
$src = remove_query_arg( 'ver', $src ); | |
return $src; | |
} | |
add_filter( 'style_loader_src', 'remove_cssjs_ver', 10, 2 ); |
View gist:5f88cdb007eb167f032ff4bf5e92ffed
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
<strong>({Payment Amount:5} + .3) / (1 - .029)</strong> |