問題の概要
Table of Contents (TOC)プラグインを使用する場合、Heading text、Show text、またはHide textなどの管理画面の文字列を翻訳できますが、その翻訳はフロントエンドには表示されません。
回避策
続行する前に、サイトの完全なバックアップを作成してください。
- …/wp-content/plugins/table-of-contents-plus/toc.php ファイルを開きます。
- 37行目を探します。
- 次を:以下に置き換えます。
// do the magic $toc_plus = new TOC_Plus();
// do the magic add_action( 'init', 'toc_init' ); function toc_init() { global $toc_plus; $toc_plus = new TOC_Plus(); }