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
<script> | |
$(function() { | |
$('input[name=confirmprivacy]').change(function() { | |
var checked = $('input[name=confirmprivacy]').prop('checked'); | |
if (checked) { | |
$('#btn_confirmation').prop('disabled', false); | |
$('#btn_confirmation').css('background-color','#0065b3'); | |
} else { | |
$('#btn_confirmation').prop('disabled', true); | |
$('#btn_confirmation').css('background-color','#777'); |
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
1.home_url - 現在のブログのホームURLを取得する | |
<?php $home = home_url( '/' ); ?> | |
現在のブログ(サイト)のホームURLを取得する。ホームURLは、管理者ページの「設定」-「一般」の「サイトのアドレス(URL)」のこと。 | |
WordPress 3.0より前のバージョンではget_option( 'home' )やget_bloginfo( 'home' )を使用していたが、3.0以降ではこの関数を使うほうが望ましい(たぶん)。 | |
2.site_url - 現在のブログのサイトURLを取得する | |
<?php $site = site_url( '/' ); ?> | |
現在のブログ(サイト)のサイトURLを取得する。サイトURLは、管理者ページの「設定」-「一般」の「WordPressのアドレス(URL)」のこと。 |
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 | |
// アイコンを変更 | |
add_action( 'admin_print_styles', 'fuga_dashboard_print_styles' ); | |
function fuga_dashboard_print_styles() { | |
?> | |
<style> | |
/* | |
#dashboard_right_now li a.xxx-count:before, |
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 | |
// カスタム投稿タイプの記事数をダッシュボードに表示 | |
add_filter( 'dashboard_glance_items', 'hoge_dashboard_glance_items' ); | |
function hoge_dashboard_glance_items( $elements ) { | |
foreach ( array( | |
//'投稿タイプ名' を「,」区切りでココに記述。今回の場合は「お客様の声(voice)」と「商品登録(product)」。 | |
'voice', | |
'product' | |
) as $post_type ) { |
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 | |
// アイコンを変更 | |
add_action( 'admin_print_styles', 'piyo_dashboard_print_styles' ); | |
function piyo_dashboard_print_styles() { | |
?> | |
<style> | |
/* | |
#adminmenu #menu-posts-yyy div.wp-menu-image:before, |
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
{ | |
"theme": "◯◯◯.sublime-theme" | |
} |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>Monokai Bright</string> | |
<key>settings</key> | |
<array> | |
<dict> | |
<key>settings</key> |
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
{ | |
"theme": "◯◯◯.sublime-theme", | |
"color_scheme": "Packages/User/Monokai Bright Modified.tmTheme" | |
} |
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
{ | |
"auto_complete": true, | |
// オートコンプリート | |
"auto_complete_commit_on_tab": true, | |
// 補完候補の選択にタブキーのみを用いる | |
"auto_complete_delay": 50, | |
// 補完候補表示の遅延 | |
"auto_complete_size_limit": 4194304, | |
// オートコンプリートの最大サイズ | |
"auto_indent": true, |
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
[ | |
{ "keys": ["shift+enter"], "command": "insert", "args": {"characters": "<br />" } }, | |
{ "keys": ["ctrl+enter"], "command": "insert", "args": {"characters": "<br>" } } | |
] |
OlderNewer