Learn from Other site [closed]

You can also view source or use inspect element in your browser. From there, search for “theme” and you’ll find the wp-content/themes/ folder and then the name of the theme right after it (if they’re using WordPress). Similar with plugins, you can usually find references to the plugin in the source code on the site. … Read more

Use of undefined constant issue

It’s possible that your $http_host isn’t in the list of possible choices. You can always check first that the ENVIRONMENT constant has actually been defined: if ( defined( ‘ENVIRONMENT’ ) && ‘local’ === ENVIRONMENT ) { define(‘ASSETSDIR’, get_template_directory_uri() . ‘/assets’); } else { define(‘ASSETSDIR’, $dist_dir . ‘/assets’); }