- Grunt
- grunt-contrib-watch
- grunt-contrib-sass
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 | |
/* | |
Plugin Name: Really Simple CSV Importer Debugger add-on | |
Description: Enables to dry-run-testing with Really Simple CSV Importer. When this add-on plugin activated, csv data will not imported, just displayed on dashboard. | |
Author: Takuro Hishikawa | |
Version: 0.2 | |
*/ | |
class rscsvimporter_debug { | |
// singleton instance |
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
/** | |
* ウィジェット「アーカイブ」にフィルター | |
* require Custom Post Type Permalinks | |
*/ | |
add_filter( 'widget_archives_args', 'my_widget_archives_args', 10, 1); | |
add_filter( 'widget_archives_dropdown_args', 'my_widget_archives_args', 10, 1); | |
function my_widget_archives_args( $args ){ | |
if ( ! is_admin() ) { | |
if ( 'blog' == get_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
======== | |
パッチの作り方 | |
======== | |
$ mkdir wordpress | |
$ cd wordpress # ここがドキュメントルート | |
$ svn co http://develop.svn.wordpress.org/trunk/ . | |
$ svn update # 作業を行う直前に毎回実行! | |
ファイルを追加した場合は `svn add` でそのファイルを追加する。 |
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
<!DOCTYPE html> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<meta name="robots" content="noodp, noydir" /> | |
<link rel="dns-prefetch" href="//cdnjs.cloudflare.com"> | |
<link rel="canonical" href="http://mysite.com/" /> | |
<link rel="stylesheet" href="http://mysite.com/style.css" type="text/css" /> |
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
cut -d ' ' -f1 ~/.bash_history | sort | uniq -c | sort -r | head -n 10 |
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 | |
function post_thumbnail_shortcode($p) { | |
$id = 0; | |
if (isset($p[0]) && $p[0]) { | |
$id = url_to_postid($p[0]); | |
} | |
if (!intval($id)) { | |
$id = get_the_ID(); | |
} |
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 | |
/* | |
Plugin Name: I am Free! | |
Author: My Name | |
Description: WordPressで好き勝手なコンテンツを好き勝手なURLで表示する。 | |
*/ | |
require_once(dirname(__FILE__).'/includes/class-addrewriterules.php'); | |
require_once(dirname(__FILE__).'/includes/class-addpage.php'); |