Untitled
unknown
plain_text
18 days ago
358 B
2
Indexable
Never
function custom_translate_text_for_logged_out_users( $translated_text, $text, $domain ) { if ( !is_user_logged_in() && $domain === 'woocommerce' && $text === 'Temporarily unavailable' ) { $translated_text = 'Login to see details'; } return $translated_text; } add_filter( 'gettext', 'custom_translate_text_for_logged_out_users', 10, 3 );
Leave a Comment