カスタマイズ事例・対応事例
WordPress のカスタマイズ・プラグイン・高速化・セキュリティー対策で、ご依頼や日々の作業で試したこと・直したことの記録です。
WordPress にウィジェットのエリアを足して、記事の下など好きな場所に出す:register_sidebar と dynamic_sidebar
WordPressのXML-RPC機能を無効にして不正アクセスを防止
WordPress の自動更新を止める:更新のお知らせは消さずに、手で安全に更新する設定
Deprecated: Automatic conversion of false to array is deprecated inの対応
記事タイトルの初期値(プレースホルダー)をpost_type毎に変更する
WordPress の head タグの中に style や script を書き足す:wp_head の echo と、決まりの書き方(wp_add_inline_style)
管理画面右上のヘルプを非表示にする
Notice: ob_end_flush(): failed to delete and flush buffer. No buffer to delete or flush inの対応
Smart Custom Fieldsの定義をfunctions.phpで行う
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘xxx’ not found or invalid function nameの対応
SiteBeacon(サイトビーコン)
サイトが止まったら、すぐに気づける。
ホームページを 5 分ごとにチェックして、止まったとき・エラーが出たとき・SSL やドメインの期限が近いときに、メールでお知らせします。2 サイトまでは、ずっと無料で使えます。