osompress / simple-social-icons

Plugin: Simple Social Icons
62 stars 33 forks source link

Add filter to the markup output #59

Closed lopwalj closed 5 years ago

lopwalj commented 7 years ago

Hello. I would love to see a filter in the get_icon_markup function output. Actually, I want to add the attr rel="nofollow" to the links.

dreamwhisper commented 5 years ago

@marksabbath @nickcernis Is https://github.com/studiopress/simple-social-icons/pull/79 is ready to merge?

nickcernis commented 5 years ago

@dreamwhisper Yep! cc @marksabbath

dreamwhisper commented 5 years ago

Update to return apply_filters( 'simple_social_icon_html', $markup, $icon, $label ); for easier control.

nickcernis commented 5 years ago

@dreamwhisper Nice catch! Added in https://github.com/studiopress/simple-social-icons/commit/4e519ed966c3b4521965b1301735cd3bf80b49e6.