- https://mt8.biz, https://web-soudan.co.jp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"presets": [ | |
"@babel/preset-env", | |
"@babel/preset-react" | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ( ! defined( 'ABSPATH' ) ) exit; | |
global $base_items; | |
/* | |
* item | |
* item_id int | |
* title string | |
* detail string | |
* price int | |
* stock int |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ "$1" = "" ] | |
then | |
echo "please set sub dir name" | |
exit 1 | |
fi | |
echo "move your wp to $1!" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# terraformのGitコミットログを確認 | |
$ brew log terraform | |
Warning: homebrew/core is a shallow clone so only partial output will be shown. | |
To get a full clone run: | |
git -C "$(brew --repo homebrew/core)" fetch --unshallow | |
commit 74f8f0f9c5cd3703dd36031cfada22e721b244e5 | |
Author: BrewTestBot <[email protected]> | |
Date: Tue Jun 4 19:00:44 2019 +0000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'woocommerce_stripe_request_body', function( $post_data, $order ) { | |
//カスタマーのクレジットカード明細に載るので実際にはstripeではなく、 | |
//サイト名や会社名の英字表記にする(5〜22文字)。 | |
//記号とかは使わない方がよさそう。 | |
$post_data['statement_descriptor'] = 'stripe'; | |
return $post_data; | |
},10,2 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wp post delete $(wp post list --post_type='post' --format=ids --date_query=2017) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Plugin Name: MW WP Form Count Limiter | |
* Plugin URI: https://mt8.biz | |
* Description: MW WP Form のフォームごとに送信件数制限を設定できるようにするアドオン | |
* Version: 0.1 | |
* Author: mt8 | |
* Author URI: https://mt8.biz | |
* License: GPLv2 or later | |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//「今後の返信をメールで通知」の後にフック | |
add_action('bbp_theme_after_reply_form_subscription', 'my_bbp_theme_after_reply_form_subscription'); | |
/** | |
* トピック回答フォームの「今後の返信をメールで通知」項目の後のアクションフック処理 | |
*/ | |
function my_bbp_theme_after_reply_form_subscription() { | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ブログ記事はコチラ:https://mt8.biz/953 | |
#==================== | |
#事前準備(Mac) | |
#==================== | |
#---手元のマシン(Mac)で鍵を作成--- | |
cd ~/.ssh/ | |
ssh-keygen -t rsa -f time4vps |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function my_pre_get_avatar_data( $args, $id_or_email ) { | |
$args['scheme'] = 'https'; | |
return $args; | |
} | |
add_filter( 'pre_get_avatar_data', 'my_pre_get_avatar_data', 10, 2 ); |