•  Plugin + Add-ons
    • WPSSO Core (Premium)
    • WPSSO FAQ Manager
    • WPSSO Inherit Parent Metadata
    • WPSSO Mobile App Meta Tags
    • WPSSO Organization Markup (Premium)
    • WPSSO Place and Local SEO Markup (Premium)
    • WPSSO Product Metadata for WooCommerce
    • WPSSO Ratings and Reviews
    • WPSSO REST API
    • WPSSO Ridiculously Responsive Social Sharing Buttons
    • WPSSO Schema Breadcrumbs Markup
    • WPSSO Schema JSON-LD Markup (Premium)
    • WPSSO Shipping Delivery Time for WooCommerce
    • WPSSO Strip Schema Microdata
    • WPSSO Tune WP Image Editors
    • WPSSO Update Manager
    • WPSSO User Locale Selector
  •  Documentation
    • WPSSO Core
    • WPSSO FAQ Manager
    • WPSSO Inherit Parent Metadata
    • WPSSO Mobile App Meta Tags
    • WPSSO Organization Markup
    • WPSSO Place and Local SEO Markup
    • WPSSO Product Metadata for WooCommerce
    • WPSSO Ratings and Reviews
    • WPSSO REST API
    • WPSSO Ridiculously Responsive Social Sharing Buttons
    • WPSSO Schema Breadcrumbs Markup
    • WPSSO Schema JSON-LD Markup
    • WPSSO Shipping Delivery Time for WooCommerce
    • WPSSO Strip Schema Microdata
    • WPSSO Tune Image Editors
    • WPSSO Update Manager
    • WPSSO User Locale Selector
  •  Premium Support
Documentation > Plugin Documentation > WPSSO Core | Documentation > Notes and Documentation > Developer Resources > Filters > Filter Examples

Modify the “article:tag” Keywords / Names

March 5, 2015Updated on July 31, 2016 JS Morisset

Here is a filter I use on UnderwaterFocus to remove the ‘Wiki-‘ prefix from WordPress tags. This snippet hooks the filter_wpsso_tags() function to the ‘wpsso_tags’ filter, and the function receives an array of tags, which it transforms and returns. You could also use the same technique to add and/or remove certain tags.

1
2
3
4
5
6
7
8
9
10
11
 
add_filter( 'wpsso_tags', 'filter_wpsso_tags', 10, 1 );
 
function filter_wpsso_tags( $tags = array() ) {
        foreach ( $tags as $num => $tag_name ) {
                $tag_name = preg_replace( '/^wiki-/i', '', $tag_name );
                $tags[$num] = $tag_name;
        }
        return $tags;
}
 

WordPress Plugin News

WPSSO Core and Add-ons

  • WPSSO Core (Premium) Present your content at its best on social sites and in search results, no matter how webpages are shared, re-shared, messaged, posted, embedded, or crawled.
  • WPSSO FAQ Manager Create FAQ and Question / Answer Pages with optional shortcodes to include FAQs and Questions / Answers in your content.
  • WPSSO Inherit Parent Metadata Inherit the featured and custom images from parents for posts, pages, custom post types, categories, tags, and custom taxonomies.
  • WPSSO Mobile App Meta Tags Apple Store / iTunes and Google Play App meta tags for Apple’s mobile Safari banner and Twitter’s App Card.
  • WPSSO Organization Markup (Premium) Customize the Schema Organization markup for your website and create additional Schema Organizations (publisher, organizer, etc.).
  • WPSSO Place and Local SEO Markup (Premium) Manage Schema Places and Local SEO for Facebook / Open Graph, Pinterest, and Google Local Business.
  • WPSSO Product Metadata for WooCommerce GTIN, GTIN-8, GTIN-12 (UPC), GTIN-13 (EAN), GTIN-14, ISBN, MPN, depth, and volume for WooCommerce products and variations.
  • WPSSO Ratings and Reviews Ratings and Reviews for WordPress Comments with Schema Aggregate Rating and Schema Review Markup.
  • WPSSO REST API Enhances the WordPress REST API post, term and user queries with an array of social meta tags, SEO HTML tags and Schema JSON-LD markup.
  • WPSSO Ridiculously Responsive Social Sharing Buttons Ridiculously Responsive (SVG) Social Sharing Buttons for your content, excerpts, CSS sidebar, widget, shortcode, templates, and editor.
  • WPSSO Schema Breadcrumbs Markup Schema BreadcrumbList markup with JSON-LD structured data for better Google Rich Results.
  • WPSSO Schema JSON-LD Markup (Premium) Google Rich Results and JSON-LD structured data for Articles, Carousels, Events, FAQ pages, How-tos, Local SEO, Products, Recipes, Ratings, Reviews, and more.
  • WPSSO Shipping Delivery Time for WooCommerce Shipping delivery time estimates for WooCommerce shipping zones, methods, and classes.
  • WPSSO Strip Schema Microdata Remove Schema Microdata and RDFa from the webpage for better Google Rich Results using Schema JSON-LD markup.
  • WPSSO Tune WP Image Editors Improves the appearance of WordPress images for better click-through-rates from social and search sites.
  • WPSSO Update Manager Update Manager for the WPSSO Core Premium plugin and its Premium complementary add-ons.
  • WPSSO User Locale Selector Quick and easy locale / language / region selector for the WordPress admin toolbar.