How can I quickly get a system showing the “Uncaught Error: Class ‘WP_Site_Health’ not found in” up and running again?

Have a look at what point in your code you’re making calls to the WordPress REST API or any other code which makes use of WP_Site_Health. If you’re making calls in your <theme>/functions.php file, for example, it won’t work because functions.php is included before class WP_Site_Health in wp-settings.php. See wp-settings.php code (WordPress 5.7.2): // Load … Read more

Display update notification messages like ‘What’s New’

You can hook into in_plugin_update_message-{$file}. For the above plugin, the according code looks as follows: add_action(‘admin_menu’, array($this,’admin_menu’), 11); function admin_menu() { global $pagenow; if( $pagenow == ‘plugins.php’ ) { $hook = apply_filters(‘acf/get_info’, ‘hook’); add_action( ‘in_plugin_update_message-‘ . $hook, array($this, ‘in_plugin_update_message’), 10, 2 ); } } function in_plugin_update_message( $plugin_data, $r ) { $version = apply_filters(‘acf/get_info’, ‘version’); $readme … Read more

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