Skip to content

Commit 12c03f6

Browse files
author
Dale Nguyen
authored
Merge pull request #5 from mo2l/remove_inline_styling_from_tag_cloud.php
Create remove_inline_styling_from_tagcloud.php
2 parents 075992b + e36e35a commit 12c03f6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
function remove_tagcloud_inline_styling($input){
2+
return preg_replace('/ style=("|\')(.*?)("|\')/','',$input);
3+
}
4+
5+
add_filter('wp_generate_tag_cloud', 'remove_tagcloud_inline_styling',10,1);

0 commit comments

Comments
 (0)