WordPress.org

Ready to get started?Download WordPress

Plugin Directory

wpuntexturize

Prevent WordPress from displaying single and double quotation marks as their curly alternatives.

Filters

The plugin is further customizable via two hooks. Typically, these customizations would be put into your active theme's functions.php file, or used by another plugin.

c2c_wpuntexturize (action)

The 'c2c_wpuntexturize' action allows you to use an alternative approach to safely invoke c2c_wpuntexturize() 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.

Arguments:

  • none

Example:

Instead of:

<?php echo c2c_wpuntexturize( $mytext ); ?>

Do:

<?php echo do_action( 'c2c_wpuntexturize', $mytext ); ?>

wpuntexturize_filters (filter)

The 'wpuntexturize_filters' filter allows you to customize what filters to hook to be filtered with wpuntexturize. See the Description section for a complete list of all filters that are filtered by default.

Arguments:

  • array $filters : the default array of filters

Example:

add_filter( 'wpuntexturize_filters', 'more_wpuntexturize_filters' );
function more_wpuntexturize_filters( $filters ) {
    $filters[] = 'event_description';
    return $filters;
}

Requires: 1.5 or higher
Compatible up to: 4.0
Last Updated: 2014-8-26
Downloads: 3,931

Ratings

4 stars
4.3 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,2,2
100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1
50,2,1 100,1,1
0,1,0
0,2,0
100,2,2
100,1,1