Skip to content

Instantly share code, notes, and snippets.

<?php
/*
Plugin Name: Complete removal of MarketPress
Plugin URI: https://premium.wpmudev.org/
Description: Removes all products orders and options of MarketPress from your WordPress installation. We strongly recommend to keep a backup before using this plugin. In order to start removing MarketPress options please click here <a >Remove MarketPress options</a>
Author: Panos Lyrakis @ WPMUDEV
Author URI: https://premium.wpmudev.org/
License: GPLv2 or later
*/
@panoslyrakis
panoslyrakis / wpmudev-mp-countries-taxrates.php
Last active February 22, 2022 15:28
Set taxes per country for MarketPress. Please make sure that "mp_manage_price_tax/tax_rate" filter has been added in mp_manage_price_tax() function
<?php
/*
Plugin Name: Custom taxes for MarketPress
Plugin URI: https://premium.wpmudev.org/
Description: Overrides taxes for products and cart. Can use custom tax rates per country. You can use "WPMUDEV_MP_Country_Taxes/get_countries_info" filter to deit countries and rates
Author: Panos Lyrakis @ WPMUDEV
Author URI: https://premium.wpmudev.org/
License: GPLv2 or later
*/
@panoslyrakis
panoslyrakis / wpmudev-inactive-signups.php
Last active January 11, 2017 08:00
Activate or delete inactive signups on a WordPress Multisiet installation
<?php
/**
* Plugin Name: Activate Multisite Signups
* Plugin URI: https://premium.wpmudev.org/
* Description: Activate or delete inactive signups on a WordPress Multisite installation
* Version: 1.0.0
* Author: Panos Lyrakis @ WPMUDEV
* Author URI: https://premium.wpmudev.org/profile/panoskatws
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
@panoslyrakis
panoslyrakis / wpmudev-app-notifiaction-wpml.php
Created January 24, 2017 12:08
Tranaslate confirmation emails of Appointments plugin. Requires to edit file in order to set the translations per language and service id as there is no gui
<?php
/**
* Plugin Name: Appointments confirmation WPML translate
* Plugin URI: https://premium.wpmudev.org/
* Description: Tranaslate confirmation emails of Appointments plugin. Requires to edit file in order to set the translations per language and service id as there is no gui
* Version: 1.0.0
* Author: Panos Lyrakis ( WPMUDEV )
* Author URI: https://premium.wpmudev.org/profile/panoskatws
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
@panoslyrakis
panoslyrakis / wpmudev-mp-weight-intrval.php
Created January 26, 2017 18:18
Show weight interval in cart
<?php
/*
Plugin Name: WPMU MP - Show weight interval
Plugin URI: http://premium.wpmudev.org/
Description: Show weight interval in cart
Version: 1.0.0
Author: Panos Lyrakis (WPMUDEV)
Author URI: http://premium.wpmudev.org
License: GNU General Public License (Version 2 - GPLv2)
*/
@panoslyrakis
panoslyrakis / appointments_get_appointments_for_day.php
Created January 26, 2017 21:35
It accepts argument "date" and returns appointments for that date.The date arg should be in "Y-m-d" format. Used with Appointments+ plugin
<?php
/*
Description: Copy file in mu-plugins folder. To be used with Appointments+ plugin. It accepts argument "date" and returns appointments for that date.The date arg should be in "Y-m-d" format.
*/
if( ! function_exists( 'appointments_get_appointments_for_day' ) ){
function appointments_get_appointments_for_day( $args = array() ) {
if( ! class_exists( 'Appointments' ) ){
@panoslyrakis
panoslyrakis / wpmudev-mp-custom-listing.php
Created January 29, 2017 00:02
Provides a shortcode for custom product listing
<?php
/*
Plugin Name: WPMUDEV MP - Custom Products List
Plugin URI: http://premium.wpmudev.org/
Description: Provides a shortcode for custom product listing
Version: 1.0.0
Author: Panos Lyrakis (WPMUDEV)
Author URI: http://premium.wpmudev.org
License: GNU General Public License (Version 2 - GPLv2)
*/
@panoslyrakis
panoslyrakis / wpmudev-ps-adsinsidebar.php
Last active January 29, 2017 19:31
Creates a shortcode and displays Pro Site ads on sidebar. Requires Pro Sites plugin
<?php
/*
Plugin Name: WPMUDEV Pro Site Ads on sidebar
Plugin URI: https://premium.wpmudev.org/
Description: Creates a shortcode and displays Pro Site ads on sidebar
Author: Panos Lyrakis @ WPMUDEV
Author URI: https://premium.wpmudev.org/
License: GPLv2 or later
*/
@panoslyrakis
panoslyrakis / wpmudev-apps-history.php
Last active February 15, 2017 18:49
Moves latest completed and removed appointments in A+ to a history table in db so the appointments table is lighter
<?php
/*
Plugin Name: Appointments+ History
Description: Moves latest completed and removed appointments to a history table in db so the appointments table is lighter
Plugin URI: https://gist.github.com/panoslyrakis/5b7f6d488f4f11701e01ac3ebf1226b9
Version: 1.0.0
Author: Panos Lyrakis ( WPMUDEV )
Author URI: https://premium.wpmudev.org/profile/panoskatws
*/