さくらレンタルサーバのコントロールパネルではマルチドメイン毎に PHP バージョンを設定できないので、以下の方法で設定する。 (同じ方法でサブディレクトリ毎に設定することも可能。)
対象ディレクトリに、以下の内容で php.cgi ファイルを設置する。
#!/bin/sh
exec /usr/local/php/7.4/bin/php-cgi
| 校名 | 住所 | |
|---|---|---|
| 健大高崎 | 群馬県高崎市中大類町531 | |
| 桐生第一 | 群馬県桐生市小曾根町1-5 | |
| 高崎商 | 群馬県高崎市東貝沢町3丁目4 | |
| 高崎経済大付 | 群馬県高崎市浜川町1650-1 | |
| 東農大二 | 群馬県高崎市石原町3430 | |
| 桐生市商 | 群馬県桐生市清瀬町6-1 | |
| 前橋育英 | 群馬県前橋市朝倉町3丁目31-6 | |
| 前橋 | 群馬県前橋市下沖町321-1 | |
| 前橋商 | 群馬県前橋市南町4丁目35-1 |
| #!/usr/local/bin/bash | |
| # Set backup directory | |
| BACKUP_DIR=/path/to/wordpress/wp-content/ai1wm-backups/ | |
| # Change directory to the WordPress | |
| cd $BACKUP_DIR | |
| # Run the wp-cli command to export the backup file | |
| wp ai1wm backup |
さくらレンタルサーバのコントロールパネルではマルチドメイン毎に PHP バージョンを設定できないので、以下の方法で設定する。 (同じ方法でサブディレクトリ毎に設定することも可能。)
対象ディレクトリに、以下の内容で php.cgi ファイルを設置する。
#!/bin/sh
exec /usr/local/php/7.4/bin/php-cgi
| <?php | |
| /** | |
| * Imports files and images( except cover and profile photo ) | |
| * @since UM 2.0 | |
| * | |
| * Sample Usage: | |
| * - Fields should be created first in the UM Form Builder. | |
| * - Files should be added to /wp-content/uploads/ultimatemember/<user_id>/ before running the import function. | |
| * | |
| * add_action('init', function(){ |
| 地区 | 学校 | 出場回数 | 住所 | URL | |
|---|---|---|---|---|---|
| 北北海道 | 旭川大高 | 3年ぶり10度目 | 北海道旭川市永山7条16丁目3−16 | http://www.asahikawa-uhs.ed.jp/ | |
| 南北海道 | 札幌大谷 | 初出場 | 北海道札幌市東区北16条東9丁目1 | https://www.s-ohtani.ed.jp/ | |
| 青森 | 八戸学院光星 | 3年ぶり11度目 | 青森県八戸市湊高台6丁目14−5 | http://kh.hachinohe-u.ac.jp/ | |
| 岩手 | 一関学院 | 12年ぶり7度目 | 岩手県一関市八幡町5−24 | https://ichinoseki-gakuin.jp/ | |
| 秋田 | 能代松陽 | 11年ぶり4度目 | 秋田県能代市緑町4−7 | http://www.noshiroshoyo-h.akita-pref.ed.jp/ | |
| 山形 | 鶴岡東 | 3年ぶり7度目 | 山形県鶴岡市切添町22−30 | https://tsuruokahigashi.net/ | |
| 宮城 | 仙台育英 | 3年ぶり29度目 | 宮城県仙台市宮城野区宮城野2の4の1 | https://www.sendaiikuei.ed.jp/hs/ | |
| 福島 | 聖光学院 | 3年ぶり17度目 | 福島県伊達市六角3−2 | https://www.seikogakuin.jp/ | |
| 茨城 | 明秀学園日立 | 初出場 | 茨城県日立市神峰町3丁目2−26 | https://www.meishu.ac.jp/ |
| add_filter( 'wpcf7_mail_tag_replaced', function ( $replaced, $submitted, $html, $mail_tag ) { | |
| // In this case, the value of "options" tag will be replaced. | |
| if ( 'options' === $mail_tag->field_name() ) { | |
| $replaced = implode( "\n", $submitted ); | |
| } | |
| return $replaced; | |
| }, 10, 4 ); |
| <?php | |
| /* | |
| Plugin Name: Biz Calendar Shortcode | |
| Plugin URI: https://gist.github.com/ko31 | |
| Description: Biz Calendar のカレンダーをショートコードから出力 | |
| Version: 0.1.0 | |
| Author: ko31 | |
| Author URI: https://go-sign.info | |
| */ |
| # via Messaging API reference | |
| # https://developers.line.biz/en/reference/messaging-api/#text-message | |
| # Send text message | |
| curl -v -X POST https://api.line.me/v2/bot/message/push \ | |
| -H 'Content-Type:application/json' \ | |
| -H 'Authorization: Bearer {your channel access token}' \ | |
| -d '{ | |
| "to": "{userId}", | |
| "messages":[ |