Skip to content

Instantly share code, notes, and snippets.

@strangerstudios
Created August 3, 2017 15:46
Show Gist options
  • Save strangerstudios/0d2c43597d5da617a1c3a21fc7d553d4 to your computer and use it in GitHub Desktop.
Save strangerstudios/0d2c43597d5da617a1c3a21fc7d553d4 to your computer and use it in GitHub Desktop.
A blank plugin file for customizations to your Paid Memberships Pro setup including a stylesheet for customizations.
<?php
/*
Plugin Name: PMPro Customizations
Plugin URI: https://www.paidmembershipspro.com/wp/pmpro-customizations/
Description: Customizations for my Paid Memberships Pro Setup
Version: .1
Author: Paid Memberships Pro
Author URI: https://www.paidmembershipspro.com
*/
/**
* Enqueue additional stylesheet.
*
* @return void
*/
function pmproc_preheader() {
if ( ! is_admin() ) {
wp_enqueue_style( 'pmproc_stylesheet', plugins_url( 'css/pmpro-customizations.css', __FILE__ ),
array(), '1.0', 'all' );
}
}
add_action( 'wp_enqueue_scripts', 'pmproc_preheader', 1 );
//Now start placing your customization code below this line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment