Skip to content

Instantly share code, notes, and snippets.

View dustinleer's full-sized avatar
🏠
Working from home

Dustin Leer dustinleer

🏠
Working from home
View GitHub Profile
@amboutwe
amboutwe / yoast_seo_breadcrumb_remove_link.php
Last active April 12, 2024 06:43
These snippets are examples of how you can modify the Yoast SEO breadcrumb visual output. These snippets will not alter the breadcrumb schema output. Please consult the schema documentation to change the breadcrumb schema: https://developer.yoast.com/features/schema/api#to-add-or-remove-graph-pieces
@eSaner
eSaner / wp-cli_update_multi_posts.txt
Last active April 2, 2023 20:11
Update multiple posts with WP-CLI
/**
* Command line
*
* @source https://git.pub/snippets/4
*/
for id in $(wp post list --post_type=my_post_type --fields=ID --format=ids); do wp post update $id --post_title="Page Number $id"; done
@dustinleer
dustinleer / script-file.js
Last active September 17, 2021 14:12
Moving Nav Items
var
// NAV
navbutton = $('.menu-toggle'),
navWrap = $('.main-nav-wrapper'),
navmenu = $('.main-nav'),
servicemenu = $('.service-menu'),
// WATCHER
watcher = window.matchMedia("(max-width: 1179px)");
@eriktdesign
eriktdesign / generate-wpe-gitignore
Created September 23, 2021 17:42
Generate a .gitignore file based on WP Engine's WordPress .gitignore
#!/bin/bash
if [ "$1" != "" ]; then
theme_name=$1
fi
FILE=.gitignore
if test -f "$FILE"; then
echo ".gitignore exists, aborting."
else