Documentation

All the information you need in one place

Can I change the required post’s copy length?

Nelio Content’s quality analysis evaluates the length of your posts and lets you know when a post is too short. By default, if your post has fewer than 700 words, it’s bad; if it has between 700 and 1000, it’s improvable; and if it has more than 1000, it’s good. You can change these thresholds using the following snippet:

function nc_customize_word_count_thresholds() {
  $script = <<<JS
    NelioContent.editPost.updateQualityCheckSettings(
      'nelio-content/content-length',
      { improvableThreshold: 700, goodThreshold: 1000 }
    );
JS;
  wp_add_inline_script( 'nelio-content-edit-post', $script );
}
add_filter( 'admin_enqueue_scripts', 'nc_customize_word_count_thresholds' );

and setting the desired values in improveThreshold and goodThreshold attributes. To add this snippet in your site, just copy and paste it in your current theme’s functions.php file (which we don’t recommend) or create a tiny plugin that contains all your customizations, as described in this post, and paste the snippet in it.

Person writing a new WordPress post on a MacBook

Looking for popups?

We have the best plugin to create popups for WordPress in minutes.

Request Customized Enterprise Pricing

10
200000

With your express consent, we handle the information provided for the purpose of contacting you and until you ask us to delete it.

70% OF YOUR VISITORS DO EXACTLY WHAT
YOU JUST DID AND NEVER COME BACK!

KEEP THEM
ON YOUR SITE
LONGER WITH
NELIO POPUPS

Claim Your Discount Now

Image with a 10%-off coupon

WAIT! BEFORE YOU GO...

Get this awesome discount now!

No, I don't want to save money

Image with a 10%-off coupon

WAIT! BEFORE YOU GO...

Get this awesome discount now!

No, I don't want to save money

YOUR COOKIE SETTINGS


This site uses proprietary operational cookies that have a purely functional purpose and third-party cookies that help us understand how visitors interact with the site by collecting and presenting information anonymously. To get more information about these cookies and the processing of your personal data, check our Privacy & Cookie Policy. Do you accept these cookies and the processing of personal data involved?


If you don’t, you can reject non-operational cookies and continue browsing this site by clicking here.