custom post types – disabling post_type in URL

When you register your custom post type, tell WP if it's a CPT public_queryable,

And that argument says …:

Whether queries can be run as part of frontend
parse_request ().

Default: value of the public argument

Note: The queries
affected are the following ones (also initiated when rewrite

  • post_type = {post_type_key}
  • ? {post_type_key} = {single_post_slug}
  • ? {post_type_query_var} = {single_post_slug}

So if you do not want these posts to be queried, you should submit them not correct as this argument.

theme – Disabling the frontend for CMS / API only, Headless Magento 2.3

I'm working on a web app that uses Magento 2.3 as a pure CMS. How can I deactivate the customer-oriented frontend and leave only the administration pages accessible?

Is there an alternative way to set the Magento design to return a static HTML file (such as 404.html) when visiting non-admin / rest routes?

Windows – Disabling the Unicode BOM from the PowerShell Echo Output?

I would like to create some short configuration files echo by PowerShell, but unfortunately by default a leading Unicode BOM is created at the top of the files. This destroys applications like pip that have not yet learned to ignore the bill of materials. Is there a flag or environment variable or one from which the bill of material can be sent out?

Enable Windows on a virtual machine with the same product key after disabling the preinstalled version

I'm trying to understand the process of enabling methods for Windows 10 on a virtual machine. I mainly want to use Linux with Windows Virtual Machine.

I bought a computer with a preinstalled Windows (OEM) version. And then Linux installed on a separate partition. After that I extracted the key from / sys / firmware …
After that I downloaded Windows 10 ISO and installed it as a virtual machine. During the installation process, I was asked for the product key and I entered the product key. However, the installation was successful when I wanted to check the status of activation by pressing Win + I. Then I saw that Windows is not enabled in this virtual machine.

Now, the question arises as to why the product key worked at the time Windows was installed, if the product key can not be used twice (without being the same motherboard).

My second question is, how does Windows know that this product key is already being used with another computer? Do you have a database of all product keys and the activation status of the product key?

My third question is how to disable a product key on the computer so that a new computer (a virtual machine on the same motherboard) can be reactivated.

What is the meaning of product ID and device ID in terms of product ID?

My fourth question is why there is such a big difference between the retail product key directly from the Microsoft Store ($ 145) and ebay / amazon (up to $ 5). Is there a trap when buying at Amazon / Ebay?