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 include the opening php tag | |
// Add this to your theme functions.php or a new plugin | |
// to add a list of predefined choices on the bulk options popup. | |
add_filter('frm_bulk_field_choices', 'add_custom_frm_options'); | |
function add_custom_frm_options($opts){ | |
// change 'Set Name' to whatever label you want shown on the left side of the bulk field options popup | |
// add each option to the array |
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 include the opening php tag | |
// Add this to your theme functions.php or a new plugin | |
// to enable a shortcode to return a list of entry ids with completed payments | |
// 1. Create a view to show only the entries with completed payments | |
// 2. Go down to the "advanced settings" section of your view, and add a filter: | |
// Entry id is equal to [frm_completed_entries form_id=5] | |
// 3. Replace 5 with the id of your form. |
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 | |
if( ! defined( "DVKSS_VERSION" ) ) { | |
header( 'Status: 403 Forbidden' ); | |
header( 'HTTP/1.1 403 Forbidden' ); | |
exit; | |
} | |
class DVKSS_Public { | |
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 | |
/** | |
* Allow multiple downloads in a bundled Easy Digital Downloads | |
* product be updated from a single license | |
* 1. Create 1 download set to generate a license | |
* 2. Create more downloads and do not set them to generate licenses | |
* 3. Create one more download and bundle all the downloads from #1 and #2 | |
*/ | |
function s11_allow_single_license() { |
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: Formidable MediaVault | |
* Plugin URI: https://www.formidablepro.com | |
* Description: This plugin will allow you to use | |
* Version: 1.0.0 | |
* Author: Strategy11 | |
* Author URI: http://strategy11.com | |
* License: GPL2 | |
*/ |
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 | |
/* | |
Template Name: Blank template | |
*/ | |
wp_head(); | |
if (have_posts()) : while (have_posts()) : the_post(); | |
the_content(); | |
endwhile; endif; |
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: S11 Word Cloud | |
Description: Use the [cloud words="Awesome,Fabulous"] shortcode to create a cloud of words | |
Version: 1.0 | |
Author URI: http://strategy11.com | |
Author: Strategy11 | |
*/ | |
add_shortcode( 'cloud', 's11_word_cloud' ); |
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 | |
// New function to get the cart details for an array of purchase ids | |
function edd_get_user_payments_cart_detail( $payment_ids, $include_bundle_files = false ) { | |
global $wpdb; | |
$payment_ids = array_filter( $payment_ids, 'is_numeric' ); | |
$payments = $wpdb->get_results("SELECT post_ID, meta_value FROM {$wpdb->postmeta} WHERE meta_key = '_edd_payment_meta' AND post_ID in (" . implode( $payment_ids, ',' ). ")"); | |
$all_details = array(); | |
if ( ! empty( $payments ) ) { |