Skip to content

Instantly share code, notes, and snippets.

Panos Lyrakis panoslyrakis

Block or report user

Report or block panoslyrakis

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
@panoslyrakis
panoslyrakis / convert-array-to-query-string.php
Last active Aug 31, 2018
Convert an array to a query string
View convert-array-to-query-string.php
<?php
/**
* Plugin Name: Convert array to query string
* Plugin URI: https://gist.github.com/panoslyrakis
* Description: Convert an array to a query string. Usefull when you have a huge array with several keys and need it be converted into query string.
* Author: Panos Lyrakis
* Author URI: https://gist.github.com/panoslyrakis
* License: GPLv2 or later
*/
@panoslyrakis
panoslyrakis / ms-paypal-log.php
Created Aug 28, 2018
[Membership 2] - PayPal Payment Logs
View ms-paypal-log.php
<?php
/**
* Plugin Name: [Membership 2] - PayPal Payment Logs
* Plugin URI: https://premium.wpmudev.org/
* Description: Logs PayPal Payments
* Author: Panos Lyrakis @ WPMUDEV
* Author URI: https://premium.wpmudev.org/
* License: GPLv2 or later
*/
if ( ! defined( 'ABSPATH' ) ) {
@panoslyrakis
panoslyrakis / wpmudev-shared-terms-multisite.php
Created Nov 23, 2017
[WordPress MultiSite General] - Fix shared terms in multisite
View wpmudev-shared-terms-multisite.php
<?php
/**
* Plugin Name: [WordPress MultiSite General] - Fix shared terms in multisite
* Plugin URI: https://premium.wpmudev.org/
* Description: A custom solution to fix shared terms in multisite
* Author: Panos Lyrakis @ WPMUDEV
* Author URI: https://premium.wpmudev.org/
* License: GPLv2 or later
*/
if ( ! defined( 'ABSPATH' ) ) {
@panoslyrakis
panoslyrakis / custom-feed-reader.php
Last active Aug 10, 2017
It will try fetch feeds with file_get_contents() instead of using simplepie
View custom-feed-reader.php
<?php
/*
Plugin Name: Custom Feed Importer
Plugin URI: https://premium.wpmudev.org/
Description: It will try fetch feeds with file_get_contents
Author: Panos Lyrakis @ WPMUDEV
Author URI: https://premium.wpmudev.org/
License: GPLv2 or later
*/
@panoslyrakis
panoslyrakis / ps-checkout-shortcode.php
Created Aug 5, 2017
Provides a shortcode to add the Pro Sites checkout form in any page
View ps-checkout-shortcode.php
<?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
*/
@panoslyrakis
panoslyrakis / m2-protect-post-excerpt-in-archive.php
Created Aug 2, 2017
Hide the excerpt in the archive list
View m2-protect-post-excerpt-in-archive.php
<?php
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() ){
return $content;
@panoslyrakis
panoslyrakis / ms2-payment-notification.php
Created Jul 31, 2017
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' ) ) {
@panoslyrakis
panoslyrakis / events-metabox-for-address.php
Created Jul 25, 2017
Add PostalAddress metabox to events. Can be used in events schema
View events-metabox-for-address.php
<?php
/*
Plugin Name: WPMUDEV - Events PostalAddress
Plugin URI: https://premium.wpmudev.org/
Description: Add PostalAddress metabox to events
Author: Panos Lyrakis @ WPMUDEV
Author URI: https://premium.wpmudev.org/
License: GPLv2 or later
*/
@panoslyrakis
panoslyrakis / custom-attachments-list.php
Created Jul 24, 2017
List images and sort them by term via ajax
View 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' ) ) {
You can’t perform that action at this time.