This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Cleancut

Description

A couple of simple php functions that, when passed a string of text and a length value, strips the text of html tags and markup, and cuts it to the specified length.

clencut_w returns the given number of words or less, cleancut_c returns given number of characters or less. Only complete words are returned.

They can be called as cleancut_w($string,$length) and cleancut_c($string,$length=50) from any template file.

Example: <?php $text_clean = cleancut_w($sometext,50); echo $text_clean; ?>.

Screenshots

  • The functions.

Installation

  1. Copy cct_cleancut.php to the /wp-content/plugins/ directory.
  2. Activate it.
  3. Now you can use cleancut_w($string,$length) and cleancut_c($string,$length=50) in your templates.

FAQ

Nothing here.

Contributors & Developers

“Cleancut” is open source software. The following people have contributed to this plugin.

Translate “Cleancut” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.2

  • Now returns clean string instead of echoing it.