Please getting following Error while using me wordpress theme on my server can anyone please help out with the reason why this happening.
Parse error: syntax error, unexpected T_FUNCTION in /wp-content/themes/BookYourTravel/includes/theme_filters.php on line 1
These are code which is mention in that file
<?php
/** * Remove password email text if option for users to set their own password is enabled in Theme settings. */
function remove_password_email_text ( $text )
{
$let_users_set_pass = of_get_option('let_users_set_pass', 0);
if ($text == 'A password will be e-mailed to you.' && $let_users_set_pass)
$text = '';
return $text;
}
add_filter( 'gettext', 'remove_password_email_text' );
?>
You are missing one
{
and one}
here:
and here:
Please download theme_filters.php file from server and check is it proper formatted or code is coming just one line. If code is coming in one line just format it. I got same issue when i check my file on server its was showing code like this:
I formatted this file like this:
Now its working fine for me.
Good luck...