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 | |
//You may either create a function or place this code in a custom page template. | |
//Find more here -> https://www.paidmembershipspro.com/documentation/content-controls/require-membership-function/ | |
if( is_user_logged_in() ){ | |
if( pmpro_hasMembershipLevel( 'silver' ) ){ | |
//show this for 'silver level' |
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 | |
/** | |
* Return the post excerpt, if one is set, else generate it using the | |
* post content. If original text exceeds $num_of_words, the text is | |
* trimmed and an ellipsis (…) is added to the end. | |
* | |
* @param int|string|WP_Post $post_id Post ID or object. Default is current post. | |
* @param int $num_words Number of words. Default is 55. | |
* @return string The generated excerpt. |
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
/* | |
##Device = Desktops | |
##Screen = 1281px to higher resolution desktops | |
*/ | |
@media (min-width: 1281px) { | |
/* CSS */ | |
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
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |