問題タブ [wordpress-action]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
wordpress - post.php で著者 ID を取得するには? $authordata は NULL を返します (Wordpress)
functions.phpで以下のコードを試しました
最終的に、編集ページの作成者 ID (何らかの理由で現在のユーザー ID ではありません) を取得したいと考えています。
wordpress - WP Gutenberg ブロック コールバック - 動的 css を (頭に) 追加するには?
カスタム css を必要とするカスタム ブロックを作成しました。条件付きのものがあるため、要素の属性としてインラインでこれを行うことはできません@media
。
アクションwp_enqueue_scripts
またはを使用することを考えましたwp_head
。
これは、ブロック コールバックの単純化された最後の部分です。
そして、私は試しました
何が機能するかは、体にエコーする<style>
ことです。しかし、それは最もきれいですか?
どんなポインタでも大歓迎です