Hello @dilshahdirar
You can use the official login_url-filter for this. Please have a look at this site:
https://codex.wordpress.org/Plugin_API/Filter_Reference/login_url
I have really messed up with wp-login.php.
The only way to solve this is to remove that notification from forum top
So you can just use the asgarosforum_filter_login_message and set an empty string to it.
@asgaros
Where? I don’t know much. Send me the code of you can
In your themes functions.php:
function myLoginMessage() {
return '';
}
add_filter('asgarosforum_filter_login_message', 'myLoginMessage');
@asgaros
And my full theme crashed. Nothing is working now
Found the code At asgaros-forum/includes/forum.php
{
$loginMessage = '<div class="info">'.__('You need to login in order to create posts and topics.', 'asgaros-forum').' <a href="'.esc_url(wp_login_url($this->links->current)).'">» '.__('Login', 'asgaros-forum').'</a></div>';
}
$loginMessage = apply_filters('asgarosforum_filter_login_message', $loginMessage);
echo $loginMessage;
}
Now i need to replace this. But i dont have correct code π
The code is working fine for me. Dont touch the plugin-files because the changes will get overwritten with each update.
@asgaros
Where to paste the code in function.php of theme?
I usually paste it in the end and it causes the theme to crash
Problem fixed. It was a ‘;‘ like always :p
By no message is shown in the place where it showed to login