Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/yukiuota/uk-post-add-js/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
UK Post Add JS Plugin
WordPressの投稿、固定ページ、カスタム投稿の編集画面にJavaScript入力フィールドを追加し、フロントエンドで出力するプラグインです。
機能
- 投稿、固定ページ、カスタム投稿の編集画面にカスタムJavaScriptフィールドを追加
- 入力されたJavaScriptコードをフロントエンドの
wp_footer()で出力 - シンプルな構文チェック機能
- コード入力時の基本的なエディタ機能(タブインデント等)
インストール
- このフォルダ全体を
/wp-content/plugins/ディレクトリにアップロード - WordPress管理画面の「プラグイン」メニューから「UK Add JS」を有効化
使用方法
- 投稿、固定ページ、またはカスタム投稿の編集画面を開く
- ページ下部に表示される「カスタムJavaScript」メタボックスを探す
- テキストエリアにJavaScriptコードを入力(`