While checking the WordPress ‘Site Health’ status page, you may see ‘utf8mb4 requires a newer client library‘ highlighted by that tool: This is an issue that only applies to cPanel hosting servers when they use the CloudLinux PHP Selector, which all of our shared servers are using. The fix however is pretty easy. First, login to […]
Tag: wordpress
How to Auto Link Post Thumbnails to the Post Permalink in WordPress
All you have to do is add this code to the end of your theme’s functions.php file: add_filter( ‘post_thumbnail_html’, ‘wps_post_thumbnail’, 10, 3 ); function wps_post_thumbnail( $html, $post_id, $post_image_id ) { $html = ‘<a href=”‘ . get_permalink( $post_id ) . ‘” title=”‘ . esc_attr( get_post_field( ‘post_title’, $post_id ) ) . ‘”>’ . $html . ‘</a>’; return […]
How to solve “PHP Update Required” warning on WordPress
The WordPress open-source content management system (CMS) will show warnings in its backend admin panel if the site runs on top of an outdated PHP version. The short-term plan is to migrate as many active users to more recent versions of PHP as possible so that the WordPress team can drop support for older PHP […]
Disable REST API Plugin
Disable the REST API with a Plugin: If you want to try a completely different solution you can try out https://wordpress.org/plugins/disable-json-api/ which takes care of removing the REST API functionlity for you. Disable the REST API without a Plugin: Maybe you don’t use any security plugins. While I recommend that you reconsider and install either WordFence or […]
How to send e-mail in HTML View with wp_mail()
$to = ‘a1@b.com, a2@b.com, a3@b.com’; $subject = ‘The Subject of your e-mail’; $message = ‘The Content of your e-mail’; $headers = array(‘Content-Type: text/html; charset=UTF-8’); wp_mail( $to, $subject, $message, $headers );