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 | |
if ( ! class_exists( 'WpSmushRestore' ) ) { | |
class WpSmushRestore { | |
/** | |
* Constructor | |
*/ | |
function __construct() { |
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 | |
//Membership 2 Pro | |
add_filter( 'the_excerpt', '_wpmudev_ms_custom_content_protection', 20, 1 ); | |
add_filter( 'the_content', '_wpmudev_ms_custom_content_protection', 20, 1 ); | |
function _wpmudev_ms_custom_content_protection( $content ){ | |
global $post; | |
if( ! $post instanceof WP_Post || ! is_archive() ){ |
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: Pro Sites - Checkout Shortcode | |
Plugin URI: https://premium.wpmudev.org/ | |
Description: Provides a shortcode to add the Pro Sites checkout form in any page | |
Author: Panos Lyrakis @ WPMUDEV | |
Author URI: https://premium.wpmudev.org/ | |
License: GPLv2 or later | |
*/ |