Created
August 3, 2017 15:46
A blank plugin file for customizations to your Paid Memberships Pro setup including a stylesheet for customizations.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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