How to remove it dpeneds entirely on what the warning actually is.
So what does the warning say, or can you point us towards the page that shows the warning?
it is from plugin called insert pages
Warning: Creating default object from empty value in /home/xxxx/public_html/wp-content/plugins/insert-pages/insert-pages.php on line 361
In that case, you should either post in the support forum for that plugin so the author can see the issue:
https://wordpress.org/support/plugin/insert-pages
Or, you can disable the plugin and use soemthing else.
i understand, i’ve already reported to plugin author, but i want to hide the warning massage first until plugin author fix it somehow
You can set in php.ini in home directory should you have any access to it.
display_errors = Off
I don’t have access to php.ini
Do you another solution?
Do it with .htaccess in public_html
# supress php errors
php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off
php_value docref_root 0
php_value docref_ext 0