difference of each codes for wordpress

  1. First, check how define works on PHP. It defines a named constant, /admin is just a folder, in this case, it’s a folder that you have creatied to save JS files that are admin-related, that folder is located on name_THEME_ASSETS_URI which you previously defined as well as: name_THEME_ASSETS_URI . '/js', so /admin is a folder inside /js which is inside of /templates which is inside of your theme directory.

  2. The dollar sign means, it’s a variable, I recommend you to read a couple of basic PHP tutorials to give you a better understanding of those basic concepts.

While get_stylesheet_directory_uri() is a function, so please, read about variables and functions on PHP. It’s a good start.

In general, it’s highly recommended that you learn PHP, since WordPress is written in PHP and you will get lost fast if you don’t know PHP, so I’d suggest you take a few days to learn that language and then come back to WordPress and you will understand everything more easily.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)