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 | |
class Logger { | |
public function log( $message ) { | |
return "LOG : {$message}" . PHP_EOL; | |
} | |
} | |
interface MailSentAction { | |
public function sent( $message ); |
import shutil | |
import os | |
import requests | |
from bs4 import BeautifulSoup | |
# URL handlers to scraped. | |
url_handles = [ | |
'motivational-quotes', | |
'inspirational-entrepreneurship-quotes', |
<?php | |
function args_update() { | |
$loop = 0; | |
$args = array( | |
'name', | |
'surname' | |
); | |
foreach ( $args as $arg ) { | |
WC()->queue()->schedule_single( |
<?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( |
<?php // Do not include this if already open! | |
/** | |
* Code goes in theme functions.php. | |
*/ | |
add_action( 'wp_enqueue_scripts', 'load_dashicons_front_end' ); | |
/** | |
* Enqueue the Dashicons script. | |
*/ |
<?php // Do not include this if already open! | |
/** | |
* Return the country code. | |
* | |
* @since 1.0.0 | |
*/ | |
function get_user_country_code() { | |
return 'GB'; // This is main United Kingdom front page. | |
} |
#!/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 | |
/** | |
* Delete attached images after product deletion. | |
* | |
* @since 1.0.0 | |
* | |
* @see wp_delete_post() | |
* | |
* @param int $post_id Post ID. | |
*/ |