Skip to content

Instantly share code, notes, and snippets.

View olaronymax's full-sized avatar

OlaRonyMax olaronymax

View GitHub Profile
@jaredatch
jaredatch / gist:1337595
Created November 3, 2011 19:52
Add external link to admin menu in WordPress
<?php
/**
* Add external links to the admin menu
*/
add_action( 'admin_menu' , 'ja_new_admin_menu_items' );
function ja_new_admin_menu_items() {
global $submenu;
$url = get_bloginfo('url');
/**
@strangerstudios
strangerstudios / pmpro_customizations.php
Last active November 24, 2020 22:48
Redirect users away from posts requiring membership with Paid Memberships Pro.
<?php
/*
Plugin Name: PMPro Customizations
Plugin URI: http://www.paidmembershipspro.com/wp/pmpro-customizations/
Description: Customizations for Paid Memberships Pro
Version: .1
Author: Stranger Studios
Author URI: http://www.strangerstudios.com
*/