|
/ Documentation /Developers Documentation/ Customize SEO Title Length Check Threshold surerank_title_length

Customize SEO Title Length Check Threshold surerank_title_length

Hook: surerank_title_length

Description: This filter changes the title-length threshold exposed to SureRank editor-side checks. The default is 60 characters. It does not truncate titles or control how search engines display them; server-side analyzers may use their own fixed constant.

Source: inc/functions/get.php

Usage: Adjust the editor-side title-length check threshold; review rendered titles separately.

Example:

PHP
// Change the editor title-length check threshold.
add_filter( 'surerank_title_length', function() {
    return 60; // Set the check threshold to 60 characters.
});

You can add the example code to your child theme’s functions.php file or use a plugin like Code Snippets to safely insert custom code. Using a code snippet plugin is recommended for easier management and to ensure the code remains active even if you switch themes.

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
Table of Contents
Scroll to Top