• 以下のPHP Noticeエラーがサーバーログに記録されています。

    PHP Notice: Function wp_register_script was called incorrectly.
    Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks.
    This notice was triggered by the wp-associate-post-r2-product-editor-script handle.
    
    Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /path/to/wordpress/wp-includes/functions.php on line 5865

    環境は以下です。
    PHP 7.4.33
    WordPress 6.2.2

    wp_register_script()の呼び出し方法が正しくないようです。

    こちらでもコードを確認してみますが報告まで

  • The topic ‘wp_register_scriptでPHP Notice エラーが発生している’ is closed to new replies.