All Assets For Build Date of February 5, 2016
A Pen by 1WD.tv - Freelance Web Designer Training on CodePen.
remove_action( 'woocommerce_order_details_after_order_table', 'woocommerce_order_again_button' ); | |
//Did this help? Donate me some BTC: 1BEsm8VMkYhSFJ92cvUYwxCtsfsB2rBfiG |
<?php | |
/********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/ | |
/* Remove Date Meta Tags Output by Yoast SEO | |
* Credit: Yoast development team | |
* Last Tested: Apr 09 2019 using Yoast SEO 10.1.3 on WordPress 5.1.1 | |
* For Yoast SEO 14.0 or newer, please see https://yoast.com/help/date-appears-search-results/#h-managing-dates | |
*/ | |
add_action('wpseo_dc_'.'DC.date.issued', '__return_false'); // Premium versions 5.2 or older |
<?php | |
//hooks in to MemberPress $args array before sending new subscriber info to MailChimp | |
function mepr_add_my_tags($args, $member) { | |
$zip = get_user_meta($member->ID, 'mepr-address-zip', true); | |
$country = get_user_meta($member->ID, 'mepr-address-country', true); | |
if($zip) { | |
$args['merge_fields']['MMERGE6'] = $zip; //YOU'LL NEED TO CHANGE MMERGEX TO MAP THEM TO YOUR OWN TAG VALUES | |
} | |
All Assets For Build Date of February 5, 2016
A Pen by 1WD.tv - Freelance Web Designer Training on CodePen.
<?php | |
/* | |
* Dependent Plugin Activation/Deactivation | |
* | |
* Sources: | |
* 1. https://pippinsplugins.com/checking-dependent-plugin-active/ | |
* 2. http://10up.com/blog/2012/wordpress-plug-in-self-deactivation/ | |
* | |
*/ | |
<?php | |
/** | |
* Skip Registration for Logged In Users | |
* http://gravitywiz.com/2012/04/24/skip-user-registration-for-logged-in-users/ | |
* Works for GF User Registration 3.0 and greater. | |
*/ | |
add_filter( 'gform_is_delayed_pre_process_feed', 'maybe_delay_feeds', 10, 4 ); | |
function maybe_delay_feeds( $is_delayed, $form, $entry, $slug ) { | |
if ( is_user_logged_in() && $slug == 'gravityformsuserregistration' ) { | |
return gf_user_registration()->has_feed_type( 'create', $form ); |
<?php | |
function my_pmpro_account_bullets_top_avatar() | |
{ | |
global $current_user; | |
echo '<li class="alignright" style="display: inline-block; list-style: none; margin: -5rem 0 0 0;">' . get_avatar($current_user->ID, 200) . '</li>'; | |
} | |
add_action("pmpro_account_bullets_top","my_pmpro_account_bullets_top_avatar"); | |
function my_pmpro_account_bullets_bottom_avatar() | |
{ |
<?php | |
function wpse_dequeue_google_fonts() { | |
wp_dequeue_style( 'divi-fonts' ); | |
} | |
add_action( 'wp_enqueue_scripts', 'wpse_dequeue_google_fonts', 20 ); |
#Copy PMPro page restrictions from level 1 to level 2. Change the 1 and 2 below to copy for different levels. | |
INSERT INTO wp_pmpro_memberships_pages (membership_id, page_id) SELECT 2, page_id FROM wp_pmpro_memberships_pages WHERE membership_id = 1; |