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: Membership Users Exporter | |
Author: Hoang Ngo | |
Version: 1.0 | |
*/ | |
add_action('admin_menu', 'me_main_menu'); | |
add_action('wp_loaded', 'me_export_users'); | |
function me_main_menu() | |
{ |
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_shortcode('m_count_down', 'm_count_down'); | |
function m_count_down($attr) | |
{ | |
if (class_exists('Membership_Plugin')) { | |
$subscription_id = isset($attr['s_id']) ? $attr['s_id'] : 0; | |
if (!is_user_logged_in()) { | |
return ''; | |
} | |
if ($subscription_id == 0) { |
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: Jobs & Experts Job location field | |
Author: Hoang Ngo | |
Version: 1.0 | |
*/ | |
add_filter('je_job_additions_field', 'job_add_location_field'); | |
function job_add_location_field($fields) |
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_action('wdf_after_goal_complete', 'fundraiser_done_send_email'); | |
function fundraiser_done_send_email($pledges) | |
{ | |
$small_amount_emails = array(); | |
$large_amount_emails = array(); | |
foreach ($pledges as $pledge) { | |
$data = get_post_meta($pledge->ID, 'wdf_transaction', true); | |
if ($data['gross'] < 5) { | |
$small_amount_emails[] = $data['payer_email']; | |
} else { |
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
function _mp_cart_shipping($editable = false, $echo = false) | |
{ | |
global $mp, $current_user; | |
$meta = wp_parse_args(get_user_meta($current_user->ID, 'mp_shipping_info', true), array( | |
'address1' => '', | |
'address2' => '', | |
'city' => '', | |
'state' => '', | |
'zip' => '', |
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 csv converter | |
Author: Hoang | |
Version: 1.0 | |
*/ | |
add_action('admin_menu', 'mpc_admin_menu'); | |
function mpc_admin_menu() | |
{ |
NewerOlder