Skip to content

Instantly share code, notes, and snippets.

View jerturowetz's full-sized avatar

Jeremy Turowetz jerturowetz

View GitHub Profile
@BFTrick
BFTrick / delete-user-meta-box-order.sql
Created May 20, 2014 16:15
Delete users meta box custom order in the WordPress admin
DELETE
FROM `wp_usermeta`
WHERE `meta_key` LIKE 'meta-box%'
@PurpleBooth
PurpleBooth / README-Template.md
Last active April 29, 2025 02:22
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@wzup
wzup / .bashrc
Last active May 17, 2023 00:49
alias for Git Bash on Windows
# create a file C:\Users\[user]\.bashrc
# add this content
# add your onw aliases or changes these ones as you like
# to make a dot (.bashrs) file in windows, create a file ".bashrs." (without extention) and save. windows will save it as ".bashrc"
alias ls='ls -alh'
alias cdnginx='cd /c/nginx && ls'
alias cdmcga='cd /c/Users/[user]/sbox/node/mcga && ls'
alias cdfood9='cd /c/Users/[user]/sbox/node/food9 && ls'
alias cdmysql='cd /c/nginx/mysql/bin && ls'
<?php
$link_manager = new RP4WP_Post_Link_Manager();
$related_posts = $link_manager->get_children( get_the_ID() );
@joshuadavidnelson
joshuadavidnelson / add-yoast-redirect.php
Last active April 14, 2025 10:51
Programmatically add a redirect to the Yoast SEO Premium redirects.
<?php
/**
* Create a new redirect within the Yoast redirect system.
*
* @param string $origin_url redirecting from.
* @param string $destination_url redirecting to.
* @param int $type redirect code, defaults to 301.
* @param string $format the format, either 'plain' or 'regex', defaults to 'plain'.
* @return void
*/