This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command
$ docker-compose up -d
# To Tear Down
$ docker-compose down --volumes
<?php | |
//sanitize adsense box adsense codes | |
function weart_sanitize_adsense( $input ) { | |
esc_js($input); | |
$input = str_replace(array("\r", "\n"), '', $input); | |
return $input; | |
} | |
//sanitize checkbox |
#!/usr/bin/env bash | |
# | |
# gh-dl-release! It works! | |
# | |
# This script downloads an asset from latest or specific Github release of a | |
# private repo. Feel free to extract more of the variables into command line | |
# parameters. | |
# | |
# PREREQUISITES | |
# |
#!/usr/bin/env bash | |
# | |
# gh-dl-release! It works! | |
# | |
# This script downloads an asset from latest or specific Github release of a | |
# private repo. Feel free to extract more of the variables into command line | |
# parameters. | |
# | |
# PREREQUISITES | |
# |
Afghanistan | |
Albania | |
Algeria | |
Andorra | |
Angola | |
Antigua & Deps | |
Argentina | |
Armenia | |
Australia | |
Austria |
<?php | |
function custom_wc_coupon_validity( $valid, $product, $this, $values ) { | |
if ( $product->is_on_sale() ) { | |
return false; | |
} | |
return $valid; | |
} |
<?php | |
function bt_register_routes( $routes ) { | |
foreach ( $routes as $route_name => $args ) { | |
bt_register_route( $route_name, $args ); | |
} | |
} | |
function bt_register_route( $route_name, $args = array() ) { | |
$args = wp_parse_args( $args, array( | |
'query_var' => 'route_' . $route_name, |