Git appears to come as standard as part of the WSL
install. You can test this by running:
$ git --version
If for some reason Git is not installed then you can simply pull it down:
<?php | |
/** | |
* Delete attached images after product deletion. | |
* | |
* @since 1.0.0 | |
* | |
* @see wp_delete_post() | |
* | |
* @param int $post_id Post ID. | |
*/ |
#!/bin/bash | |
# | |
# This script configures WordPress file permissions based on recommendations | |
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
# | |
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org> | |
# | |
WP_OWNER=nobody # <-- wordpress owner | |
WP_GROUP=nogroup # <-- wordpress group | |
WP_ROOT=$1 # <-- wordpress root directory |
<?php | |
function args_update() { | |
$loop = 0; | |
$args = array( | |
'name', | |
'surname' | |
); | |
foreach ( $args as $arg ) { | |
WC()->queue()->schedule_single( |
<?php | |
class Logger { | |
public function log( $message ) { | |
return "LOG : {$message}" . PHP_EOL; | |
} | |
} | |
interface MailSentAction { | |
public function sent( $message ); |
<?php // Do not include this if already open! | |
/** | |
* Code goes in theme functions.php. | |
*/ | |
add_filter( 'everest_forms_frontend_recaptcha_url', 'evf_recaptcha_lang_code', 10, 2 ); | |
/** | |
* Language code support for reCAPTCHA v2. | |
* |
In case you are just needing to restore a Local site from an existing Local site folder, here’s how:
Note: There must be SQL files present in app/sql in order for this to work. Otherwise, the database won’t be able to be restored.
htdocs
with htdocs-backup
.D:
cd ..
<?php | |
/** | |
* Custom shortcode to display form entries. | |
* | |
* Usage [everest_forms_entries_table id="FORMID"] | |
* | |
* @param array $atts Shortcode attributes. | |
*/ | |
function evf_entries_table( $atts ) { | |
$atts = shortcode_atts( |
docker system prune -f --volumes | |
docker container prune -f | |
docker container stop $(docker container ls -aq) | |
docker container rm $(docker container ls -aq) | |
docker image prune -f -a | |
docker volume prune -f | |
docker network prune -f |