Last active
June 5, 2020 10:39
-
-
Save kimcoleman/6ce3f43a720634ce7493fd0ec052b4c2 to your computer and use it in GitHub Desktop.
Enqueue additional stylesheets for sites running Paid Memberships Pro
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 | |
/** | |
* Integration for Paid Memberships Pro | |
* | |
* @package My_Theme_Name | |
*/ | |
// Enqueue additional stylesheets for sites running Paid Memberships Pro | |
function my_theme_pmpro_init_styles() { | |
if ( defined( 'PMPRO_VERSION' ) ) { | |
wp_enqueue_style( 'paid-memberships-pro-customizations', get_template_directory_uri() . '/css/paid-memberships-pro.css', array(), '1.0' ); | |
} | |
} | |
add_action( 'wp_enqueue_scripts', 'my_theme_pmpro_init_styles' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment