Skip to content

Instantly share code, notes, and snippets.

View wpmudev-sls's full-sized avatar

WPMUDEV SLS Snippets - Unofficial wpmudev-sls

View GitHub Profile
@wpmudev-sls
wpmudev-sls / bannedwords.csv.zip
Last active November 15, 2022 15:39 — forked from panoslyrakis/bannedwords.csv.zip
[Forminator] - Banned words
@wpmudev-sls
wpmudev-sls / smush-bulk-restore.php
Last active October 24, 2018 10:50 — forked from UmeshSingla/smush-bulk-restore.php
Adds a Box after settings, that allows you to restore your images from an existing backup created by Smush using Ajax
<?php
if ( ! class_exists( 'WpSmushRestore' ) ) {
class WpSmushRestore {
/**
* Constructor
*/
function __construct() {
@wpmudev-sls
wpmudev-sls / m2-protect-post-excerpt-in-archive.php
Last active August 12, 2017 14:52 — forked from panoslyrakis/m2-protect-post-excerpt-in-archive.php
[Membership 2 Pro] Hide the excerpt in the archive list
<?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() ){
@wpmudev-sls
wpmudev-sls / ps-checkout-shortcode.php
Created August 12, 2017 14:25 — forked from panoslyrakis/ps-checkout-shortcode.php
Provides a shortcode to add the Pro Sites checkout form in any page
<?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
*/