Skip to content

Instantly share code, notes, and snippets.

wpmudev-sls

Block or report user

Report or block wpmudev-sls

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@wpmudev-sls
wpmudev-sls / m2-protect-post-excerpt-in-archive.php
Last active Aug 12, 2017 — forked from panoslyrakis/m2-protect-post-excerpt-in-archive.php
[Membership 2 Pro] Hide the excerpt in the archive list
View m2-protect-post-excerpt-in-archive.php
<?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 / ms2-payment-notification.php
Created Aug 12, 2017
[Membership 2 Pro] - Adds payment notices to members that have not paid for subscriptions
View ms2-payment-notification.php
<?php
/*
Plugin Name: Membership - Add payment notices
Plugin URI: https://premium.wpmudev.org/
Description: Adds payment notices to members that have not paid
Author: Panos Lyrakis @ WPMUDEV
Author URI: https://premium.wpmudev.org/
License: GPLv2 or later
*/
if ( ! defined( 'ABSPATH' ) ) {
@wpmudev-sls
wpmudev-sls / wp-custom-attachments-list.php
Created Aug 12, 2017
[WordPress] - List images and sort them by term via ajax
View wp-custom-attachments-list.php
<?php
/*
Plugin Name: WPMUDEV - List Attachmetns
Plugin URI: https://premium.wpmudev.org/
Description: List attachments and sort them via ajax
Author: Panos Lyrakis @ WPMUDEV
Author URI: https://premium.wpmudev.org/
License: GPLv2 or later
*/
if ( ! defined( 'ABSPATH' ) ) {
@wpmudev-sls
wpmudev-sls / wpmudev-autoreload-page-content.php
Last active Aug 15, 2017
Custom auto page reload with js
View wpmudev-autoreload-page-content.php
<?php
/*
Plugin Name: Custom auto page reload
Plugin URI: https://premium.wpmudev.org/
Description: It will update the content of the page without member re-loading the page
Version: 2.0
Author: Panos Lyrakis @ WPMUDEV
Author URI: https://premium.wpmudev.org/
License: GPLv2 or later
*/
@wpmudev-sls
wpmudev-sls / ms-force-pending-status.php
Last active Aug 18, 2017
[Membership 2 Pro] - Forces Pending status to new subscription made from admin
View ms-force-pending-status.php
<?php
/*
Plugin Name: Membership - Force Pending status
Plugin URI: https://premium.wpmudev.org/
Description: Forces Pending status to new subscription made from admin
Author: Panos Lyrakis @ WPMUDEV
Author URI: https://premium.wpmudev.org/
License: GPLv2 or later
*/
if ( ! defined( 'ABSPATH' ) ) {
@wpmudev-sls
wpmudev-sls / replace-gettext-cpt.php
Created Aug 18, 2017
[WordPress] - Replace gettext on CPT pages
View replace-gettext-cpt.php
<?php
/*
Plugin Name: Replace gettext on CPT pages
Plugin URI: https://premium.wpmudev.org/
Description: Replace gettext on CPT pages
Author: Panos Lyrakis @ WPMUDEV
Author URI: https://premium.wpmudev.org/
License: GPLv2 or later
*/
@wpmudev-sls
wpmudev-sls / show-cpt-upfront-layout.php
Last active Aug 21, 2017
Show Custom Post Type in Upfront Layouts list. Upfront hides 'product' CPT as it relies to ecommerce plugin, this filter will show the CPT in Upfront Layouts list if the CPT was manually created and does not rely on an ecommerce plugin
View show-cpt-upfront-layout.php
<?php
/*
Plugin Name: CPT in Upfront Layouts
Plugin URI: https://premium.wpmudev.org/
Description: Display CPT in Upfront existing layouts list
Version: 1.0
Author: Lindeni Mahlalela @ WPMUDEV
Author URI: https://premium.wpmudev.org/
License: GPLv2 or later
*/
@wpmudev-sls
wpmudev-sls / snippet.php
Created Aug 23, 2017
[Membership] - Add editors emails to get copy in auto email responses
View snippet.php
<?php
/*
Plugin Name: [Membership] add editors in auto emails
Plugin URI: https://premium.wpmudev.org/
Description: Adds editors emails in the "Send copy to Administrator"
Author: Panos Lyrakis @ WPMUDEV
Author URI: https://premium.wpmudev.org/
License: GPLv2 or later
*/
@wpmudev-sls
wpmudev-sls / m2-dripped-countdown.php
Last active Aug 24, 2017
[Membership] - Dripped memberships countdown
View m2-dripped-countdown.php
<?php
/*
Plugin Name: [Membership] - Dripped memberships countdown
Plugin URI: https://premium.wpmudev.org/
Description: Adds a countdown for dripped memberships
Author: Panos Lyrakis @ WPMUDEV
Author URI: https://premium.wpmudev.org/
License: GPLv2 or later
*/
@wpmudev-sls
wpmudev-sls / wp-rest-api-example
Created Sep 7, 2017
WordPress - Simple Rest API example
View wp-rest-api-example
<?php
/*
Plugin Name: REST Api Example
Plugin URI: https://premium.wpmudev.org/
Description: A usage example of the wp REST API
Author: Panos Lyrakis @ WPMUDEV
Author URI: https://premium.wpmudev.org/
License: GPLv2 or later
*/
You can’t perform that action at this time.