Version: 1.2.4 Force browsers to display two spaces (when present) between sentences.
The plugin is further customizable via two filters. Typically, these customizations would be put into your active theme's functions.php file, or used by another plugin.
The 'c2c_extra_sentence_space' filter allows you to use an alternative approach to safely invoke c2c_extra_sentence_space() in such a way that if the plugin were deactivated or deleted, then your calls to the function won't cause errors in your site. This only applies if you use the function directly, which is not typical usage for most users.
Example:
Instead of:
`<?php echo c2c_extra_sentence_space( $mytext ); ?>`
Do:
`<?php echo apply_filters( 'c2c_extra_sentence_space', $mytext ); ?>`
The 'c2c_extra_sentence_space_punctuation' filter allows you to customize the punctuation, characters, and/or symbols after which double-spacing (when present) is preserved. By default these are '.!?'.
Arguments:
Example:
add_filter( 'c2c_extra_sentence_space_punctuation', 'more_extra_space_punctuation' );
function more_extra_space_punctuation( $punctuation ) {
// Adding the '/' and ')' characters to the list of characters
return $punctuation . '/)';
}
Requires: 1.5 or higher
Compatible up to: 3.3.2
Last Updated: 2011-11-22
Downloads: 2,247
Got something to say? Need help?