Skip to content

Instantly share code, notes, and snippets.

View vylesk's full-sized avatar

Vylesk Technology Solutions vylesk

View GitHub Profile
@vylesk
vylesk / show_if.php
Last active August 16, 2019 18:26
WordPress Shortcode: "Show If" for conditional content display
<?php
/**
* Plugin Name: "Show If" Shortcode
* Plugin URI: https://jsnelders.com/
* Description: Shortcode to conditionally display content if the user is in a specified role or has a specified username.
* Author: Jason Snelders
* Author URI: http://jsnelders.com
* Version: 190529.1
**/