WordPress involves default shortcodes that are specific to themes, And so the template by itself has the required code to activate These shortcodes.
once you mark a product as discontinued, the plugin will prevent it https://onlybookmarkings.com/story18221925/new-arrival-products-woocommerce-shortcode-options