Title: tenten64の返信 | WordPress.org 日本語

---

# tenten64

  [  ](https://ja.wordpress.org/support/users/tenten64/)

 *   [プロフィール](https://ja.wordpress.org/support/users/tenten64/)
 *   [作成したトピック](https://ja.wordpress.org/support/users/tenten64/topics/)
 *   [作成した返信](https://ja.wordpress.org/support/users/tenten64/replies/)
 *   [返信したトピック](https://ja.wordpress.org/support/users/tenten64/replied-to/)
 *   [エンゲージメント](https://ja.wordpress.org/support/users/tenten64/engagements/)
 *   [お気に入り](https://ja.wordpress.org/support/users/tenten64/favorites/)

 返信を検索

## フォーラムへの返信

3件の返信を表示中 - 1 - 3件目 (全3件中)

 *   フォーラム: [使い方全般](https://ja.wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   返信が含まれるトピック: [wp_localize_scriptの実行順序につきまして](https://ja.wordpress.org/support/topic/wp_localize_script%e3%81%ae%e5%ae%9f%e8%a1%8c%e9%a0%86%e5%ba%8f%e3%81%ab%e3%81%a4%e3%81%8d%e3%81%be%e3%81%97%e3%81%a6/)
 *  トピック投稿者 [tenten64](https://ja.wordpress.org/support/users/tenten64/)
 * (@tenten64)
 * [6年、 7ヶ月前](https://ja.wordpress.org/support/topic/wp_localize_script%e3%81%ae%e5%ae%9f%e8%a1%8c%e9%a0%86%e5%ba%8f%e3%81%ab%e3%81%a4%e3%81%8d%e3%81%be%e3%81%97%e3%81%a6/#post-11663432)
 * ご返信誠にありがとうございます。
    大変勉強にりました。 第3引数、たまに見ますが、
   なんだこれという程度でいつもスルーしていましたw 【い】は以下とすべきでしたね。
 *     ```
       add_action( 'wp_enqueue_scripts', 'my_enqueue_files', 1 );
       add_action( 'wp_enqueue_scripts', 'my_enqueue_first_datas', 2 );
       ```
   
 * 覚えておきます。
 *   フォーラム: [使い方全般](https://ja.wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   返信が含まれるトピック: [wp_localize_scriptの実行順序につきまして](https://ja.wordpress.org/support/topic/wp_localize_script%e3%81%ae%e5%ae%9f%e8%a1%8c%e9%a0%86%e5%ba%8f%e3%81%ab%e3%81%a4%e3%81%8d%e3%81%be%e3%81%97%e3%81%a6/)
 *  トピック投稿者 [tenten64](https://ja.wordpress.org/support/users/tenten64/)
 * (@tenten64)
 * [6年、 7ヶ月前](https://ja.wordpress.org/support/topic/wp_localize_script%e3%81%ae%e5%ae%9f%e8%a1%8c%e9%a0%86%e5%ba%8f%e3%81%ab%e3%81%a4%e3%81%8d%e3%81%be%e3%81%97%e3%81%a6/#post-11663430)
 * こんばんは、いつもご回答ありがとうございます。
 * ご指摘の通りで、
    my_enqueue_files → my_enqueue_first_datas という順序にしたところ
   解決いたしました。
 * 助かりました。(__)
 * でも・・どうしてでしょうか？
 * PHPは関数の順序が関係ないものと理解しています。
    たとえば以下はhoge()の前にfuga()
   がないのに実行できますよね。
 *     ```
       <?php
       echo hoge();
       function hoge(){
           $fuga = fuga();
           return $fuga;
       }
       function fuga(){
           return 'fuga';
       }
       ```
   
 * なのにどうして、今回の質問の件では順番が重要なのでしょうか？
 *   フォーラム: [使い方全般](https://ja.wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   返信が含まれるトピック: [wp_usersへのカラム追加機能につきまして](https://ja.wordpress.org/support/topic/wp_users%e3%81%b8%e3%81%ae%e3%82%ab%e3%83%a9%e3%83%a0%e8%bf%bd%e5%8a%a0%e6%a9%9f%e8%83%bd%e3%81%ab%e3%81%a4%e3%81%8d%e3%81%be%e3%81%97%e3%81%a6/)
 *  トピック投稿者 [tenten64](https://ja.wordpress.org/support/users/tenten64/)
 * (@tenten64)
 * [6年、 7ヶ月前](https://ja.wordpress.org/support/topic/wp_users%e3%81%b8%e3%81%ae%e3%82%ab%e3%83%a9%e3%83%a0%e8%bf%bd%e5%8a%a0%e6%a9%9f%e8%83%bd%e3%81%ab%e3%81%a4%e3%81%8d%e3%81%be%e3%81%97%e3%81%a6/#post-11663418)
 * お二方ご回答ありがとうございます。ishitaka様の方法でできました。

3件の返信を表示中 - 1 - 3件目 (全3件中)