https://{{user}}:{{password}}@example.com/
This file contains 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
@media all and (-ms-high-contrast:none){ | |
.foo { color: green } /* IE10 */ | |
} |
This file contains 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
remove_action( 'add_option_new_admin_email', 'update_option_new_admin_email' ); | |
remove_action( 'update_option_new_admin_email', 'update_option_new_admin_email' ); | |
/** | |
* Disable the confirmation notices when an administrator | |
* changes their email address. | |
* | |
* @see http://codex.wordpress.com/Function_Reference/update_option_new_admin_email | |
*/ | |
function wpdocs_update_option_new_admin_email( $old_value, $value ) { |
This file contains 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 | |
// WordPress 4.4.x までの書き方 | |
function ex_enqueue_scripts() { | |
if ( !wp_script_is( 'jquery', 'done' ) ) { | |
wp_enqueue_script( 'jquery' ); | |
} | |
} | |
add_action( 'wp_enqueue_scripts', 'ex_enqueue_scripts' ); |
This file contains 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 | |
// 例えばそれぞれのスクリプトを CDN から読み込ませてるときは enqueue したあとにこんなふうに書くと追記できる | |
add_filter( 'script_loader_tag', 'add_attribs_to_scripts', 10, 3 ); | |
function add_attribs_to_scripts( $tag, $handle, $src ) { | |
$easing = array( 'easing' ); // ここは enqueue したときのハンドル名 | |
$popper = array( 'popper' ); | |
$bootstrap = array( 'bootstrap' ); | |
$validate = array( 'validate' ); |
This file contains 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 | |
$front_page_id = get_option( 'page_on_front' ); |
$ wget --http-user={username} --http-passwd={password} {url}
- zipコマンドでディレクトリをzip化
$ zip -r {directory_name}.zip {directory_name}
- unzip
$ unzip {zip_name}.zip
- まず fetch する。
$ git fetch
- ローカルブランチ名を指定して、リモートブランチをチェックアウトする
$ git checkout -b {{branch}} origin/{{branch}}