wget -P /path/to/download -E -k -m -nH -np -p -c https://example.com
Option | Overview |
---|---|
-P | Set save directory path. |
-E | This option will cause the suitable suffix to be appended to the local filename. |
/** | |
* Customize translated post statuses. | |
*/ | |
add_filter( 'simple_slug_translate_post_status', function( $statuses ) { | |
// Specify post statuses | |
$statuses = [ | |
'draft', | |
'publish', | |
]; |
/** | |
* Customize the translated slug. | |
*/ | |
add_filter( 'simple_slug_translate_results', function( $results ) { | |
// 200 - OK | |
if ( 200 === $results['code'] ) { | |
// Customize slug | |
$results['text'] = sprintf( 'translated-%s', $results['text'] ); | |
} |
<?php | |
/** | |
* YYYY/MM/DD/[filename].html というファイルに対して、 | |
* ディレクトリ構成の年月日からファイル最終更新日時をセット | |
*/ | |
$paths = glob('*/*/*/*.html'); | |
foreach ($paths as $path) { | |
list($year, $month, $day, $file) = explode('/', $path); | |
touch($path, strtotime(sprintf('%s/%s/%s', $year, $month, $day))); |
npm-check-updates をインストールする。
$ npm install -g npm-check-updates
更新可能なパッケージを確認する。
$ ncu
wp --allow-root core language install ja --activate | |
wp --allow-root option update timezone_string 'Asia/Tokyo' |
________ ________ ________ ___ ________ ________ | |
|\ ____\|\ __ \|\ ____\|\ \|\ ____\|\ ___ \ | |
\ \ \___|\ \ \|\ \ \ \___|\ \ \ \ \___|\ \ \\ \ \ | |
\ \ \ __\ \ \\\ \ \_____ \ \ \ \ \ __\ \ \\ \ \ | |
\ \ \|\ \ \ \\\ \|____|\ \ \ \ \ \|\ \ \ \\ \ \ | |
\ \_______\ \_______\____\_\ \ \__\ \_______\ \__\\ \__\ | |
\|_______|\|_______|\_________\|__|\|_______|\|__| \|__| | |
\|_________| | |
学校名 | 都道府県 | 人数 | |
---|---|---|---|
旭川大 | 北海道 | 18 | |
北照 | 北海道 | 13 | |
北照 | 東京 | 2 | |
北照 | 大阪 | 3 | |
八戸学院光星 | 青森 | 2 | |
八戸学院光星 | 宮城 | 1 | |
八戸学院光星 | 東京 | 1 | |
八戸学院光星 | 長野 | 1 | |
八戸学院光星 | 静岡 | 1 |