This file contains 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
<a style="color: #fff;" href="[add_to_cart_url]"><b>Lägg i kundvagn</b></a> |
This file contains 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
<div style="text-align:center; max-width:400px; margin:30px auto;"> | |
<h1>Ooop, contenido restringido</h1> | |
Entrá a la tienda y adquirí este curso! | |
| |
[products ids='{{product_id}}'] | |
</div> |
This file contains 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 | |
/** | |
* | |
* @wordpress-plugin | |
* Plugin Name: GeoDirectory Extras | |
* Plugin URI: http://emoxie.com | |
* Description: Various extra functions for GeoDirectory | |
* Version: 1.1 | |
* Author: Matt Pramschufer | |
* Author URI: http://emoxie.com |
This file contains 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 | |
/* gform_pre_submission will do all forms. gform_pre_submission_1 will do a form with an ID of 1 | |
* Keep an eye on the priority of the filter. In this case I used 9 because the Salesforce plugin we used ran a presubmission filter at 10 so we needed this to happen before it | |
*/ | |
add_filter( "gform_pre_submission_1", "add_salesforce_campaign_id_footer", 9 ); | |
function add_salesforce_campaign_id_footer( $form ){ | |
foreach($form["fields"] as &$field) | |
if($field["id"] == 2){ | |
/* Set the variable you want here - in some cases you might need a switch based on the page ID. | |
* $page_id = get_the_ID(); |
This file contains 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 | |
/** | |
* The main importer class. | |
* | |
* This class reads a number of lines from the CSV file and imports the subscriptions based on the data | |
* in those rows. All errors and unexpected PHP shutdowns will be logged to assist in debugging. | |
* | |
* @since 1.0 | |
*/ |
This file contains 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
<div id='downloads-wrapper'> | |
<?php if ( count( $downloads ) > 0 ) : ?> | |
<h2><?php echo apply_filters( 'woocommerce_my_account_my_downloads_title', __( $heading, 'woocommerce' ) ); ?></h2> | |
<ul class="wc-my-downloads-digital-downloads"> | |
<?php foreach ( $downloads as $download ) : ?> | |
<?php | |
// Get order date | |
$order = new WC_Order( $download['order_id'] ); |
This file contains 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 | |
/** | |
* Do not edit this file directly. You can copy this file to your theme directory | |
* in /your-theme/woocommerce-pay-per-post/shortcode-purchased.php | |
* The $purchased variable is a WP Posts Object of purchased posts. | |
*/ | |
?> | |
<link rel="stylesheet" type="text/css" href="//cdn.datatables.net/1.10.19/css/jquery.dataTables.min.css"> | |
<script type="text/javascript" charset="utf8" src="//cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js"></script> | |
<div class="wc-ppp-purchased-container"> |
This file contains 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: WooCommerce Email Customer Address | |
* Description: Email the site admin when a customer changes their address | |
* Author: Matt Pramschufer | |
* Version: 1.0.0 | |
* | |
*/ | |
function greenmagazine_email_customer_address( $user_id ) { |
This file contains 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('woocommerce_subscriptions_product_price_string', 'modified_subscription_strings', 10, 3); | |
function modified_subscription_strings($subscription_string, $product, $include){ | |
switch($product->get_slug()){ | |
case 'green-magazine-subscription': | |
case 'classic-farm-tractor-subscription': | |
case 'little-green-magazine-subscription': | |
return '$' . number_format($product->get_price(), 2, '.', '') . ' / year'; | |
break; |
This file contains 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( 'show_user_profile', 'extra_user_profile_fields' ); | |
add_action( 'edit_user_profile', 'extra_user_profile_fields' ); | |
function extra_user_profile_fields( $user ) { ?> | |
<h3><?php _e("LEGACY IMPORTED USER DATA", "blank"); ?></h3> | |
<table class="form-table"> | |
<tr> |
NewerOlder