Fatal error: Call to undefined function wp_add_privacy_policy_content() in /wp-admin/includes/misc.php on line 1822

What I found is the function was defined in wp-admin/includes/plugin.php as mentioned here https://wpseek.com/function/wp_add_privacy_policy_content/ When I opened the plugin.php file of a clean wordpress 4.9.8 version I found the function wp_add_privacy_policy_content() already defined, whereas in my wordpress 4.9.8 version It was missing so I added it back Kindly make sure the function is defined in … Read more

Undefined index when saved to options

though i am specifying it. You’re not actually specifying it. You’re trying to use it in your regex and THEN you specified it. You can’t use it in your “if” criteria when if it doesn’t exist. You need to check to see if it exists first. The following would set your value if it is … Read more

how do i fix these errors my debug log gave me?

It looks like the theme you are using multinews is using deprecated functions for your version of PHP. See if you can get an updated copy of the theme from the theme author or downgrade your PHP version to pre 7.2 EDIT: Request to edit code. You can update the code by navigating to the … Read more

Posts, pages and some images are deleted sometimes

Perhaps your site keeps getting hacked, if the posts and pages are in the trash every now and then? Have your tried changing the passwords for every user, database password, ftp credentials, WP salts and such? You could try installing WP Security Audit Log plugin (not affiliated) from the WordPress plugin repo for tracking all … Read more

How can I make error messages in admin

All you need is the correct html markup, namely a paragraph p inside a container div with a certain class. Usable classes are updated green, error & notice-error red, notice-warning orange, notice-info blue. Exemplary usage: add_action( ‘admin_notices’, ‘wpse330943_admin_notices’ ); function wpse330943_admin_notices() { <div class=”notice notice-error”> <p> //some text </p> </div> }

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)