PHP code error?
-
There appears to be an error in the following php code. Any idea?
/** * @snippet Remove "Default Sorting" Dropdown @ WooCommerce Shop & Archive Pages */ add_action( 'init', 'njengah_remove_default_sorting_storefront' ); function njengah _remove_default_sorting_storefront() { remove_action( 'woocommerce_after_shop_loop', 'woocommerce_catalog_ordering', 10 ); remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 10 ); }
Error:
syntax error, unexpected ‘_remove_default_sorting_storef’ (T_STRING), expecting ‘(‘
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.