Skip to content

Instantly share code, notes, and snippets.

andrewlimaza / example_pmpro_has_membership.php
Created Dec 20, 2016
Example of pmpro_hasMembershipLevel() usage
View example_pmpro_has_membership.php
//You may either create a function or place this code in a custom page template.
//Find more here ->
if( is_user_logged_in() ){
if( pmpro_hasMembershipLevel( 'silver' ) ){
//show this for 'silver level'
gokulkrishh / media-query.css
Last active Aug 4, 2022
CSS Media Queries for Desktop, Tablet, Mobile.
View media-query.css
##Device = Desktops
##Screen = 1281px to higher resolution desktops
@media (min-width: 1281px) {
/* CSS */