Updates, Tips & Tricks

Updates as Released, Plus My Personal Collection Of WordPress Best Practices

Enable Author Archives for Customers in WooCommerce

14 November

Add the following to snippet your theme’s functions.php file:

/**
 * Revert WooCommerce "Disable author archives for customers." 'feature'
 */

function remove_wc_disable_author_archives_for_customers() {
    remove_action( 'template_redirect', 'wc_disable_author_archives_for_customers', 10 );
}
add_action( 'after_setup_theme', 'remove_wc_disable_author_archives_for_customers');
No comments yet.

Leave a Reply