This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Search by Category | |
Description: Add a search form where users can search by category | |
Plugin URI: http://premium.wpmudev.org/project/events-and-booking | |
Version: 1.0 | |
AddonType: Events | |
Author: WPMU DEV | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'admin_menu', 'atr_menu' ); | |
function atr_menu() { | |
add_options_page( 'ATR Plugin Options', 'ATR Convert', 'manage_options', 'atr-convert', 'atr_options' ); | |
} | |
function atr_options() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'mp_products_nav', 'mp_products_nav_cb', 99, 2 ); | |
function mp_products_nav_cb( $html, $custom_query ){ | |
global $wp_query, $mp; | |
$args = $mp->parse_args(func_get_args(), $mp->defaults['list_products']); | |
$args['nopaging'] = false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Use [show_subsite_admin] | |
*/ | |
function show_subsite_admin_func( $atts ) { | |
$a = shortcode_atts( array( | |
'exclude' => '' | |
), $atts ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'mp_coupon_value', 'mp_coupon_value_cb', 10, 3 ); | |
function mp_coupon_value_cb( $return, $code, $total ) { | |
$arr = array( | |
'XXX' => 1, | |
'YYY' => 2 | |
); | |
if( current_user_on_level( $arr[$code] ) ){ | |
return $return; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* | |
* You just need to configure the $limits array. The elements are level ID - 1. So, if your level ID 1, the index will be 0. | |
* Then for product index add the limit | |
* | |
*/ | |
$limits = array( | |
'0' => array( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: MarketPress Get a Quote | |
Plugin URI: http://bappi-d-great.com | |
Description: Embed a form in single product page | |
Version: 1.1 | |
Author: Ashok (WPMU DEV) | |
Author URI: http://bappi-d-great.com | |
Copyright 2009-2013 Incsub (http://incsub.com) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Shortcode [show_pro_sites] | |
function show_pro_sites_func( $atts ) { | |
global $psts; | |
$sites = wp_get_sites( array( 'limit' => 5000 ) ); | |
$html .= '<table width="100%" cellspacing="0" cellpadding="0">'; | |
$html .= '<tr>'; | |
$html .= '<th>Site Name</th>'; | |
$html .= '<th>Admin</th>'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: User Registration to Subscription (wpmu) | |
Plugin URI: http://bappi-d-great.com | |
Description: This plugin allows your users to auto subscribe when registered | |
Author: WPMU DEV | |
Version: 1.0.1 | |
Author URI: http://bappi-d-great.com | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Event Calendar Category Filter | |
Description: Filter by category in the calendar | |
Plugin URI: http://premium.wpmudev.org/project/events-and-booking | |
Version: 0.25 | |
Author: WPMU DEV | |
AddonType: Events | |
*/ |