Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
<body>wordpress プラグインを作成していて、ソースのタグの直後に関数を挿入したいと考えています。
<body>
私の関数は次のようになります:
function skew() { ?> <? } add_action ('hook_name', 'skew');
body タグの直後にこの関数を実行するには、どのフックを使用すればよいですか? または、ボディタグを開いた直後にこれを実行するための他の簡単な方法はありますか? ありがとう。
以下のように add_action および do_action 関数を使用します。
do_action('after_body'); add_action('after_body', 'skew');