• I’m looking for a concise PHP filter to add to my functions.php that will search for and strip the following attributes I don’t want in my theme output:

    – rel=”attachment”
    – rel=”attachment wp-att-{x}”
    – rel=”category”
    – rel=”category tag”
    – rel=”bookmark”
    – rel=”author”
    – pubdate

    I’m happy for all “rel” attributes to be stripped (rather than just what’s listed above) if that’s easier.

The topic ‘Filter to strip unnecessary attributes’ is closed to new replies.