Skip to content

Instantly share code, notes, and snippets.

@wpmudev-sls
wpmudev-sls / smartcrawl-meta-import.php
Last active May 3, 2024 08:40
[SmartCrawl Pro] Post meta import (JSON and CSV)
<?php
/**
* Plugin Name: [SmartCrawl Pro] Post meta import (JSON and CSV) (Rev. 2)
* Description: Adds a "SmartCrawl Import" menu item where the user can easily import the plugin data
* Author: Anderson Salas @ WPMUDEV
* Task: SLS-4232
* Author URI: https://premium.wpmudev.org
* License: GPLv2 or later
*/
@wpmudev-sls
wpmudev-sls / smartcrawl-meta-export.php
Last active May 3, 2024 08:46
[SmartCrawl Pro] Post meta export (JSON and CSV)
<?php
/**
* Plugin Name: [SmartCrawl Pro] Post meta export (JSON and CSV) (Rev. 3)
* Description: Adds a "SmartCrawl Export" admin bar menu where the user can easily export the site data
* Author: Anderson Salas @ WPMUDEV
* Task: SLS-4067
* Author URI: https://premium.wpmudev.org
* License: GPLv2 or later
*/
@wpmudev-sls
wpmudev-sls / wpmudev_post_indexer_handle_statistics_page.php
Created May 30, 2018 07:50
[Post Indexer] - Custom Statistics Page
<?php
/**
* Plugin Name: [Post Indexer] - Custom Statistics Page
* Plugin URI: https://premium.wpmudev.org/
* Description: For now only changes the posts lists number in the Recently Indesed Posts list
* Author: James Morris & Panos Lyrakis @ WPMUDEV
* Author URI: https://premium.wpmudev.org/
* License: GPLv2 or later
*/
if ( ! defined( 'ABSPATH' ) ) {
@wpmudev-sls
wpmudev-sls / ps-stripe-log.php
Last active July 3, 2018 03:07
Logs Stripe Payments in 3 log files both located in mu-plugins dir. One with specific info about payment, one that contains the raw request, and one that contains the stripe subscription object
<?php
/**
* Plugin Name: [Pro Sites] - Stripe Payment Logs
* Plugin URI: https://premium.wpmudev.org/
* Description: Logs Stripe Payments in 3 log files both located in mu-plugins dir. One with specific info about payment, one that contains the raw request, and one that contains the stripe subscription object
* Author: Panos Lyrakis @ WPMUDEV
* Author URI: https://premium.wpmudev.org/
* License: GPLv2 or later
*/
if ( ! defined( 'ABSPATH' ) ) {
@vaughanm
vaughanm / mp-custom-free-shipping.php
Created May 25, 2018 14:25
Mu-plugin to allow you to apply FREE shipping for specified shipping method in Marketpress, If cart total greater than set minimum,free shipping is applied.
<?php
$free_ship_minimum = 100; // minimum total for free shipping to be applied
$shipping_method = 'weight_rate'; // the shipping method for this to be applied on.
/*
* Changes the Shipping cost on the Checkout Estimated costs page
*/
add_filter( 'mp_cart/cart_meta/shipping_total', 'mp_custom_shipping_price', 88, 2);
/*
@wpmudev-sls
wpmudev-sls / mp-checkout-custom-fields.php
Last active March 15, 2018 06:45
[MarketPress] - Checkout Custom Fields
<?php
/*
Plugin Name: [MarketPress] - Checkout Custom Fields
Plugin URI: https://premium.wpmudev.org/
Description: Inserts custom fields in checkout page
Author: Panos Lyrakis @ WPMUDEV
Author URI: https://premium.wpmudev.org/
License: GPLv2 or later
*/
@bappi-d-great
bappi-d-great / code.php
Last active August 29, 2018 15:41
WPMU DEV Forminator Pro: Use a form as registration form (Beta)
<?php
if( ! class_exists( 'Forminatio_Registration_Addon' ) )
{
class Forminatio_Registration_Addon
{
// Registration Form ID
static $Form_ID = '4599';
static $map = array(