Hi,
You can use the following code in the functions.php to remove the endpoint:
if ( class_exists( 'YITH_WCAF_Affiliate_Factory' ) && class_exists( 'YITH_WCAF_Dashboard_My_Account' ) && function_exists( 'YITH_WCAF_Dashboard' ) && ! function_exists( 'yith_wcaf_remove_endpoint_no_affiliates' ) ) {
function yith_wcaf_remove_endpoint_no_affiliates() {
$is_affiliate = YITH_WCAF_Affiliate_Factory::get_current_affiliate();
$instance = YITH_WCAF_Dashboard();
if ( $instance instanceof YITH_WCAF_Dashboard_My_Account && ( ! $is_affiliate || $is_affiliate && ! $is_affiliate->is_valid() ) ) {
remove_action( 'woocommerce_account_menu_items', array( $instance, 'add_menu_items' ), 10 );
}
}
add_action( 'init', 'yith_wcaf_remove_endpoint_no_affiliates' );
}
To change the style of the form you can add this CSS code:
/*To change the center the button*/
.yith-wcaf-registration-form .button[name=register]{
padding: 0px;
}
/*To change the color of the inputs*/
.yith-wcaf-registration-form .input-text{
background-color: lightgrey;
}
Have a great day.