Hello There,
Thanks for writing in! This changed were made by WooCommerce. They have made several changes for the settings. And some settings were transferred in the customizer. By the way, the given url needs you to install the plugin: https://www.skyverge.com/product/woocommerce-remove-product-sorting/. This plugin will be in charge of removing any item from the selection.
The code added should be this:
function sv_custom_woocommerce_catalog_orderby( $sortby ) {
$sortby['alphabetical'] = 'Sort by name: alphabetical';
return $sortby;
}
add_filter( 'woocommerce_get_catalog_ordering_args', 'sv_custom_woocommerce_catalog_orderby' );
add_filter( 'woocommerce_default_catalog_orderby_options', 'sv_custom_woocommerce_catalog_orderby' );
add_filter( 'woocommerce_catalog_orderby', 'sv_custom_woocommerce_catalog_orderby' );
This will alter and add Sort by name: alphabetical
in the sort filter option.