Thanks.
Just two more quick question and then you can mark this topic as solved.
i have one short php code that i get this code before woocommerce 3.0 ( in 2.6 version )
now after woocommerce update, i dont know is there any change need for this code?
***** CODE: AUTO LOGIN AFTER UPDATE
function auto_login_new_user( $user_id ) {
wp_set_current_user($user_id);
wp_set_auth_cookie($user_id);
wp_redirect( ‘http://www.kenvuccy.com/account’ );
exit;
}
add_action( ‘user_register’, ‘auto_login_new_user’ );
—————————————————————————-
and, one code that you send me to limit woocommerce related product ..
but in this case, i just want to know which number i must change to limit the related product number
add_filter( ‘woocommerce_output_related_products_args’, ‘basel_woocommerce_output_related_products_args’, 10, 1 );
function basel_woocommerce_output_related_products_args( $args ) {
$args[‘posts_per_page’] = 20;
return $args;
}
Thanks.