You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
Wocker Docker-based rapid WordPress development environment. It takes just 3 seconds to create every fresh WordPress environment! Version 1.5.3 What is Wocker? Wocker is a local WordPress development environment. Since it’s based on Docker, it takes just 3 seconds to create every new installation of WordPress. Get Started 1. Install Vagrant http://www.vagrantup.com/ 2. Install VirtualBox https://w
Posted 5月 18th, 2015 by codechord. 2 Comments Tweet Tweet 2015/05/18、個人的にどっぷりな、wordpressプラグイン本の著者さんがセッションするということもあり、第41回 WordBench 大阪 「VCCW vs Wocker」に行った議事録と感想。 結論からいって、Dockerについてかなり理解が深まった。 きっかけを与えてくれたWockerの作者のKiteさんにはただただ感謝。 触発されて、今日ずっとDockerfileの書き方しらべてた。 あとは、TDDの必要性だとか、CIの必要性だとかへの理解が深まり、ついでに、OSSの貢献の方法というか考え方だとか、いろいろと参考になった。 本題のテーマはvccw vs wocker。つまり仮想環境を利用しての開発環境についてのセッション。 そのまえに、まずDockerについ
WP-CLI を使用すると以下のコマンドで、WordPress 本体のファイルが改ざんされていないかをチェックすることができます。 $ wp core verify-checksums ためしに WordPress の wp-settings.php を適当に書き換えてこのコマンドを実行してみると以下のようにファイルが書き換えられていることが検出できると思います。 $ wp core verify-checksums Warning: File doesn't verify against checksum: wp-settings.php Error: WordPress install doesn't verify against checksums. で、このコマンドにはコツというか正しい付き合い方があります。 もし、みなさんがなんらかの違和感を感じて、このコマンドを実行したいシチュ
本章では、これまでテスト駆動開発を行うための環境の構築方法について説明してきました。 ここからいよいよテスト駆動開発を用いてショートコードプラグインを作っていきます。 これから作るプラグインの機能について これから例として作るプラグインはショートコードプラグインです。 ショートコードとは、記事内に動的に変化するコンテンツを埋め込むための仕組みで、WordPressのデフォルトでは[gallery]というショートコードがあり、みなさんも使ったことがあると思います。 これを使用すると簡単なパラメータをPHPに渡して複雑な処理を行うことができ、私も以下のようなプラグインを公式ディレクトリに公開しています。 Simple Map – https://wordpress.org/plugins/simple-map/ Child Pages Shortcode – http://wordpress.
Unit tests are a tool that developers use to test that code is performing properly. The idea behind them is to create a set of tests to determine if your code, given a known data set, gives the expected response. A unit test should check that one piece of code, such as a function or method, runs properly and returns the expected results. Through this tutorial series, we will walk through how to se
In this tutorial, Matthew Ray will show you how to set up a GitHub repository to push updates to your plugin, wherever it resides. While you always have the option to use the WordPress Subversion repository, there may be instances where you prefer to host a plugin yourself. Perhaps you are offering your users a premium plugin. Maybe you need a way to keep your client’s code in sync across multiple
この投稿は 14年 前に公開されました。いまではもう無効になった内容を含んでいるかもしれないことをご了承ください。 そろそろテーマを変更しようかなと思っているので、その前準備について。ぼくのサイトのWordPressテーマは子テーマとか既存テーマのカスタマイズではなく、完全フルスクラッチなんですが、その際に「こんな風に作り始めてるよ」という問わず語りです。 1. 開発環境 開発ツールは最近Netbeansを使ってます。NetbeansはWordPressのルートフォルダーをプロジェクトに指定すると、関数が予測変換で呼び出せるようになります。グローバル関数なんて全部覚えていられないので、これは便利ですね。変なタイプミスをなくすためにも、予測変換機能は絶対使うようにした方がいいと思います。DreamWeaverもCS5ぐらいからこういう機能が実装されたように思います。 NetBeansの予測変
昨日、当ブログ管理画面でちょこちょこ遊んでいたら管理画面からユニットテストを実行できるプラグインを発見したので、紹介がてら簡単な使い方のご紹介。 wp-unit wp-unitはPHPUnitをベースとして作られたユニットテストプラグインです。 PHPUnitについての説明は割愛します。 PHPUnitをインストールする場合、現在利用しているPHPのバージョンに合わせてインストールして下さい。(4.3.0以上であればOKっぽいです) ※予めPHPUnitへパスを通しておく必要があります。 インストール 管理画面ログイン後、「プラグイン」メニューから新規追加を選択します。 検索ワードに「wp-unit」と入力し、検索します。 表示された画面から「wp-unit」を探します。 「インストール」をクリックし、インストールを終えます。 インストール完了後は以下のメニューが追加され、ユニットテストが
WordPress の便利なオプションファイル functions.php。 これに数行追加するだけで、本当にいろんなことができちゃいます。今回は、functions.php に書いておくといいかもしれないコードをいくつかまとめてみました。 WordPress のテーマの中で利用する functions.php。このファイルがかなり便利で、私はいろいろと functions.php に書き込んでいます。よくプラグインとかウィジットを使えばいいじゃないかーとも言われたりしますが、プラグインは厳選して重要なものだけを使って functions.php でできるものは、できるだけそうしたいなーと思っています。 プラグインが増えればその分ファイルの読み込みが多くなって、少なからず速度も落ちるかな … とか、プラグインの管理ページがごちゃごちゃするのがイヤだーとか、そんな程度の理由なんですけど …。
WordPressのテーマやプラグイン作成において、よく利用する関数やグローバル変数などを個人的に整理したコンテンツです。 各関数やグローバル変数は、情報別(データの種類)と目的別(機能の種類)に分類しています。 なお、ほとんどの情報はソースコードを見ながら書き留めた内容であり、確認不足による誤りや更新の遅れによる不正確な内容を含んでいる可能性があります。あらかじめご了承ください。
This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress. Description This plugin will perform a number of checks on your WordPress installation to detect common configuration errors and known issues, and also allows plugins and themes to add their own
Arm your vuvuzelas: WordPress 3.0, the thirteenth major release of WordPress and the culmination of half a year of work by 218 contributors, is now available for download (or upgrade within your dashboard). Major new features in this release include a sexy new default theme called Twenty Ten. Theme developers have new APIs that allow them to easily implement custom backgrounds, headers, shortlinks
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く