Conditions for admin get_current_screen action parent_file edit.php?post_type=page

You can use get_current_screen() to get details about the current screen. We want to hook on or after load-edit.php because get_current_screen() is defined just prior to this hook. By hooking into load-edit.php, we guarantee that this code will only fire on the edit.php page. Then we check the current screen to see if the post … Read more

Trying to list user and post information from (wp_includes/post.php ) causes Fatal error

Please revert your WP core file and create a plugin instead. For this type of functionality, you can use the Publish Post hook. Assuming your custom table is in the same database as WordPress, and you want to save the email address of the current user: add_action(‘publish_post’, ‘update_my_custom_table’); function update_my_custom_table() { $current_user = wp_get_current_user(); $email … Read more

Disabling WP-Admin Caching in htaccess

Your hoster is wrong. no logged in user should be cached, admin side or not. This is not just an annoyance type of issue, it is an actual security problem that might cause the disclose of your passwords. Just remove the last caching line from your htaccess, it is unlikely to do you any good … Read more

Options site set empty fields after submitting

A few things to note in your code: Two inputs share the same name of “email”, so when those values get sent in the form submission, the second one will overwrite the first. The input name attribute value should match the name of the option being saved. Instead of “email”, use “fhwtest_email”. Without that, the … Read more

Admin area is not loading properly

You may have a bad plugin causing the ‘white screen of death’ when you try to get into the admin area. Check the error.log file in the wp-admin folder. That should give you an idea of where the problem is. You could also manually disable a recently-installed plugin by renaming that plugin’s main folder in … Read more

str_replace in wp-admin

There are lots of admin-page filters you can use. Without knowing exactly what you want to do, this page might be a starting point for you. https://codex.wordpress.org/Plugin_API/Filter_Reference#Administrative_Filters Good luck!

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