Amazonファッションタイムセール祭りのオススメ目玉商品まとめ。飲み物・おむつなど日用品セールも同時開催!【6/19まで】 2023年6月16日
Error establishing a database connection This either means that the username and password information in your wp-config.php file is incorrect or we can't contact the database server at mysql5.sourceforge.jp. This could mean your host's database server is down. Are you sure you have the correct username and password? Are you sure that you have typed the correct hostname? Are you sure that the datab
PHPを少しづつ勉強してきましたが、データベース連携に突入する前に復習の為、いろいろと作ってみることにしました。とりあえず、お題は「簡単なWordPressプラグイン」です。 インターネットに繋がれていない、古~いWin98seのノートPCを引っ張りだしてきて、httpd+PHP5.1.3の環境でサンプルの学習してましたが、これを機にメインPCの方にローカルWordPress環境を構築。参考にしたのはひろまささんの「Eclipse + XAMPP で WordPress の開発環境を作ろう」です。Eclipseもインストール。XAMPPのインストールは簡単ですねぇ 8) さてプラグインの作成ですが、まずは以下のドキュメントを読んで大体の感じをつかむ。特にひろまささんが書かれたドキュメントがすごく分かりやすい。Codexの方にAPI hookの完全かつ、詳細なリストが無かったのは以外。Cod
最近日本の方の WordPress プラグインもずいぶん増えてきて、同じことをしている人間としては嬉しい限りです。 🙂 ぼくも何本か書いてきて、ようやく勘所のようなものがつかめてきたのでちょっとプラグイン作成のノウハウなんかをエントリしてみたいと思います。 いや、最初のころはずいぶん苦労したんです。。 なにができなかったって、PHP を知らなかった。 最近だいぶ”ソラ”でかけるようになってきましたが、まだまだ語彙が少なく、できる方から見ればなんだこりゃ、なんだと思うんですが…。 でまぁ、知らなくてもノリでできちゃうのがスクリプト言語の良いところ。 ここでは、「管理画面のある WordPress プラグインの作成方法」を書いてみたいと思います。 管理画面の追加の方法は分かるとして、問題はデータの保存とプログラムの構造。 経験的に以下の構造にすると、ストレス無くコードをかけるような気がします
WordPress プラグイン作成のノウハウなんかを書いてみます。 偉そうなタイトルのわりにはたいしたこと無いので暇つぶしにどうぞ。 🙂 ちょうど短めでサンプルに丁度良いプラグイン、「WordPress エントリをはてなブックマークに登録 – wp-hatena プラグイン –」のソースを元に説明してみたいと思います。 また、kohaku さんより “del.icio.us 対応” のご要望もいただいておりましたので、このエントリでプログラムの説明といっしょに対応してみたいと思います。 🙂 なおなお、説明中にはぼくが便宜上 “勝手に作った言葉” が多数存在します。正式な呼び名については各ドキュメントをご参照下さい。 では、最初に WordPress プラグインの動作を書いてみます。 有効化されたプラグインは WP の初期化の段階で .php ファイルが読み込まれ実行される 通常、プラグ
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く