3 Dots for popup text in WordPress

With this snippet 3 highlighted dots appear when you create small items of text that you…

Post term count

add_shortcode( 'term_count', function( $atts ) { $atts = shortcode_atts( array( 'taxonomy' => '', 'hide_empty' => 'false',…

<10

Card Layout for Speaker Pages

Replaces the default speaker page with a card design: a hero image, the role, contact links…

Remove the Header Menu Underline on Hover

If you enable the Header menu underline it will display both on active items and on…

Add file to media library programmatically

wp_insert_attachment( string|array $args, string|false $file = false, int $parent_post_id, bool $wp_error = false, bool $fire_after_hooks =…

Untitled Snippet

https://github.com/dontcrash/NRD.git

MemberPress: Extend Grace Period for Renewals

Adding this code will extend the grace period for renewals (default is 0). Change the number…

Gravity Forms Auto-populate Date

The purpose of this snippet is to calculate a date 90 days from today. That serves…

Dave Bayless
<10

om.Dtr.init.js

document.addEventListener('om.Dtr.init', function(event) { console.log(event.detail.Dtr); console.log(event.detail.Campaign); // Registers a custom `name` smart tag. event.detail.Dtr.setCustomVariable('name', 'Thomas'); } );

1 … 90 91 92 93 94 … 236