The WPFolks app is out on iPhone and Android. Free, no ads. Download on the App Store Get it on Google Play
Skip to main content
Login Join
Snippets

WordPress code you can actually paste.

Filters, actions, and helpers for WordPress. Categorized by hook, browsable by problem.

394 snippets
Showing 390 snippets

Opens an external link in a new browser tab while using noopener noreferrer to prevent the new page from accessing the original window.

0 29

Adds an is-scrolled class to the website header after the user scrolls 50 pixels, making it easy to create sticky header and scroll-based styling effects.

0 25

Creates an accessible mobile navigation toggle using aria-expanded and a CSS class, making it suitable for custom WordPress themes.

0 27

Proudly supported by