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 / ms-preview-notification.php
Last active September 17, 2017 18:51
[Membership 2 Pro] - Notifications Preview
<?php
/*
Plugin Name: [Membership 2 Pro] - Notifications Preview
Plugin URI: https://premium.wpmudev.org/
Description: Adds an option in notifications settings page to send a test email
Author: Panos Lyrakis @ WPMUDEV
Author URI: https://premium.wpmudev.org/
License: GPLv2 or later
*/
@wpmudev-sls
wpmudev-sls / coursepress_user_roles.php
Created September 21, 2017 17:45
A custom function that returns an array with instructor and student role per user id for CoursePress
<?php
/*
Plugin Name: [CoursePress 2] - User role in CoursePress
Plugin URI: https://premium.wpmudev.org/
Description: A custom function that returns an array with instructor and student role per user id for CoursePress
Author: Panos Lyrakis @ WPMUDEV
Author URI: https://premium.wpmudev.org/
License: GPLv2 or later
*/
@wpmudev-sls
wpmudev-sls / cp-front-ajax-cloner-sc.php
Created September 8, 2017 09:59
[CoursePress] - Cloner Shrortcode
<?php
/*
Plugin Name: [CoursePress] - Cloner Shrortcode
Plugin URI: https://premium.wpmudev.org/
Description: Provides a shortcode to clone courses via ajax
Author: Panos Lyrakis @ WPMUDEV
Author URI: https://premium.wpmudev.org/
License: GPLv2 or later
*/
@wpmudev-sls
wpmudev-sls / [MarketPress] - Google Tag Manager
Last active September 25, 2017 11:42
Adds basic feature of Google Tag Manager to MarketPress
<?php
/*
Plugin Name: MarketPress - Google Tag Manager
Plugin URI: https://premium.wpmudev.org/
Description: Adds Google Tag Manager to site
Author: Panos Lyrakis @ WPMUDEV
Author URI: https://premium.wpmudev.org/
License: GPLv2 or later
*/
@wpmudev-sls
wpmudev-sls / wpmudev-cp-cli.php
Created September 26, 2017 16:22
[CoursePress] - Provides a set of functions that can create Courses and Units. These functions can be called from wp-cli with eval
<?php
/*
Plugin Name: [CoursePress] - Set of functions that ca nbe used in wp-cli
Plugin URI: https://premium.wpmudev.org/
Description: Provides a set of functions that can create Courses and Units. These functions can be called from wp-cli with eval
Author: Panos Lyrakis @ WPMUDEV
Author URI: https://premium.wpmudev.org/
License: GPLv2 or later
*/
@wpmudev-sls
wpmudev-sls / inscub-support-uf-template.php
Last active October 3, 2017 08:47
[Incsub Support] - Single ticket template override
<?php
/*
Plugin Name: [Incusb Support] - Upfront template
Plugin URI: https://premium.wpmudev.org/
Description: Overrides default theme for single ticket. Usefull in Upfront themes where there might be an incompatibility with single-ticket.php
Author: Panos Lyrakis @ WPMUDEV
Author URI: https://premium.wpmudev.org/
License: GPLv2 or later
*/
@wpmudev-sls
wpmudev-sls / wpmudev-global-events.php
Created October 3, 2017 17:04
Recent Global Events shortcode. Requires "Post Indexer" and Events+ plugins. Provides shortcode: `[global_recent_events]` allong with several atts
<?php
/**
* Plugin Name: Recent Global Events
* Plugin URI: http://premium.wpmudev.org
* Description: Recent Global Evens function and shortcode. Requires "Post Indexer" and Events+ plugins. Provides shortcode: `[global_recent_events]` allong with several atts
* Author: Panos Lyrakis @ WPMUDEV
* Author URI: http://premium.wpmudev.org
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
@wpmudev-sls
wpmudev-sls / wpmudev-front-post-title.php
Last active October 5, 2017 14:19
[WordPress General] - Modify specific post titles
<?php
/**
* Plugin Name: [WordPress General] - Modify specific post titles
* Plugin URI: https://premium.wpmudev.org/
* Description: Modify specific posts title. Title gets also changed in site meta tags.
* Author: Panos Lyrakis @ WPMUDEV
* Author URI: https://premium.wpmudev.org/
* License: GPLv2 or later
*/
@wpmudev-sls
wpmudev-sls / mp-admin-list-table.php
Created October 6, 2017 09:15
[MarketPress] - Admin Products List. Adds a select option "No category" in admin products table. This should display all products that have no product category set.
<?php
/**
* Plugin Name: [MarketPress] - Admin Products List
* Plugin URI: https://premium.wpmudev.org/
* Description: Adds a select option "No category" in admin products table. This should display all products that have no product category set.
* Author: Panos Lyrakis @ WPMUDEV
* Author URI: https://premium.wpmudev.org/
* License: GPLv2 or later
*/
if ( ! defined( 'ABSPATH' ) ) {
@wpmudev-sls
wpmudev-sls / mp-virtual-products.php
Last active October 9, 2017 16:50
[MarketPress] - Adds Virtual products type in product's Product Kind
<?php
/*
Plugin Name: [MarketPress] Virtual products
Plugin URI: https://premium.wpmudev.org/
Description: Adds Virtual products type in product's Product Kind
Author: Panos Lyrakis @ WPMUDEV
Author URI: https://premium.wpmudev.org/
License: GPLv2 or later
*/