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
| var open = window.XMLHttpRequest.prototype.open, | |
| send = window.XMLHttpRequest.prototype.send, | |
| onReadyStateChange; | |
| function openReplacement(method, url, async, user, password) { | |
| var syncMode = async !== false ? 'async' : 'sync'; | |
| console.warn( | |
| 'Preparing ' + | |
| syncMode + | |
| ' HTTP request : ' + |
| <?php | |
| /** | |
| * Display errors | |
| */ | |
| if ( ! function_exists('debug_wpmail') ) : | |
| function debug_wpmail( $result = false ) { | |
| if ( $result ) | |
| return; |
| <?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; | |
| } |