Adding a variable to some PHP code with gettext
-
The year in the following code, that is to say “2024”
$titolo_display_price = '<div class="titolo_listino_prezzi" ID="titolo_listino_prezzi">' . '<h3 class="titolo_affitti">' . esc_html__('Rates 2024 in €/ week:','mysite-plugin') . '</h3>' .'</div>';
should be tranformed in a variable such as
$current_year = get_the_author_meta( 'current_year', $user->ID )
How can I transform the first code adding the variable?
The page I need help with: [log in to see the link]
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- You must be logged in to reply to this topic.