WordPress The Right Way
日本語 (にほんご) jp
日本語 (にほんご) jp
  • WordPress The Right Way
  • Testing
    • WP_UnitTestCase
    • theory
      • 統合テスト
      • エンドツーエンドテスト
      • ユニットテスト
      • テストタイプ
      • 挙動テスト
    • ユニットテストの例
    • テスト駆動開発
  • デバッグ
    • エラーの記録
    • エラーの取り扱い
    • ツール
    • wp-config.phpの内容
  • クエリー
  • さあ、始めよう
  • ルーティング
  • コミュニティ
  • ウィジェット
    • 基本的なウィジェット
    • JavaScript
  • データ
  • セキュリティ
  • コーディングスタイルガイド
  • Servers And Deployment
  • I18n
  • コア
  • テンプレート
  • JavaScript
  • マルチサイト
  • Credits
  • JP WordPress The Right Way
Powered by GitBook
On this page
  • スクリプトのエンキュー
  • 管理画面でのウィジェットのフォーム
  • For the frontend
  • Events
  • A new widget is added
  • The widget form opens
  • Widgets are re-ordered
  1. ウィジェット

JavaScript

スクリプトのエンキュー

管理画面でのウィジェットのフォーム

A quick note on how to do it, and a note on running the JS, so that it doesn't get ran on the html used to create new widget forms, only those in the sidebars on the right

For the frontend

How to enqueue a widgets scripts and styles, but only if the widget is on the page

Events

Running code when:

A new widget is added

The widget form opens

Widgets are re-ordered

Previous基本的なウィジェットNextデータ

Last updated 4 years ago