mysql_escape_string PROBLEM

All the mysql_ functions were deprecated in PHP 4.3 and the only currently supported version of PHP where it’s still available is 5.6. These functions have been completely removed in PHP 7. Switch to using mysqli_ or PDO functions instead.

Unable to Add User after Site Migration

Are there any errors showing up in the browser javascript console? Are you sure the migration process was properly handled? The files and the database were completely backed up and migrated? This migration process was made manually or by using a plugin? Have you tried to disable each of the plugins, one by one, while … Read more

Creating content using wp-admin pages

I would suggest that you activate a default theme, such as Twenty Seventeen, to see how it works. You do need .php files to make WordPress work, but these are generally either “theme” files (which basically control the look and feel of the site) or “plugin” files (which add or change functionality, like contact forms). … Read more

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

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