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
public static function column_display( $column_name, $id ) { | |
global $post; | |
$item = SEC_Offer::get_instance( $id ); | |
if ( !$item ) | |
return; // return for that temp post | |
switch ( $column_name ) { | |
case 'info': | |
$type = $item->get_type(); |
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
/* | |
* Lazy Load - jQuery plugin for lazy loading images | |
* | |
* Copyright (c) 2007-2013 Mika Tuupola | |
* | |
* Licensed under the MIT license: | |
* http://www.opensource.org/licenses/mit-license.php | |
* | |
* Project home: | |
* http://www.appelsiini.net/projects/lazyload |
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 class="loading-example-container" style="display: block; float: left;width: 100%;padding: 50px;text-align: center;font-size: 40px;line-height: 40px;"> | |
Page Loading...<br><i class="fa fa-spinner fa-pulse"></i> | |
</div> | |
<div class="loading-example-content" style="display: none;"> | |
<img src="https://whiteleydesigns.com/wp-content/uploads/2016/05/nature1.jpg" alt="Nature Image 1" width="1675" height="950" class="alignnone size-full wp-image-859" /> | |
<img src="https://whiteleydesigns.com/wp-content/uploads/2016/05/nature2.jpg" alt="Nature Image 2" width="1675" height="950" class="alignnone size-full wp-image-860" /> | |
<img src="https://whiteleydesigns.com/wp-content/uploads/2016/05/nature3.jpg" alt="Nature 3" width="1080" height="1440" class="alignnone size-full wp-image-862" /> | |
<img src="https://whiteleydesigns.com/wp-content/uploads/2016/05/nature4.jpg" alt="Nature 4" width="1080" height="715" class="alignnone size-full wp-image-865" /> | |
<img src="https://whiteleydesigns.com/wp-content/uploads/2016/05/nature5.jpg |
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
[ | |
{ | |
"key": "group_593ebd9564c27", | |
"title": "User Support Fields", | |
"fields": [ | |
{ | |
"key": "field_593ebd9f48bd8", | |
"label": "Support Requests", | |
"name": "support_requests", | |
"type": "repeater", |
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 | |
// Exit if accessed directly | |
if ( !defined( 'ABSPATH' ) ) exit; | |
/** | |
* The Recurring Emails Class | |
* | |
* @since 2.4 | |
*/ |
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 | |
/** | |
* Register our settings section | |
* | |
* @since 2.4 | |
* @return array | |
*/ | |
function edd_recurring_settings_section( $sections ) { |
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
function wd_downgrade_fieldstaff( $sub_id, $subscription ) { | |
$u = new WP_User( $subscription->customer->user_id ); | |
$u->remove_role( 'fieldstaff' ); | |
$u->add_role( 'subscriber' ); | |
} | |
add_action( 'edd_subscription_cancelled', 'wd_downgrade_fieldstaff', 10, 2 ); |
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
// Create Field Staff post when subscription is completed | |
add_action( 'gform_after_submission_4', 'wd_create_map_post', 10, 4); | |
function wd_create_map_post($entry, $form) { | |
global $post; | |
global $wp_query; | |
$name_first = $entry['10.3']; | |
$name_last = $entry['10.6']; | |
$state = $entry['12']; |
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 | |
// Create simple meta field to count number of logins | |
add_action( 'wp_login', 'wd_login_counter' ); | |
function wd_login_counter( $username ){ | |
$userdata = get_user_by( 'login', $username ); | |
$login_count = get_user_meta( $userdata->ID, 'wd_login_count', true ); | |
if ( !is_numeric($login_count) ) $login_count = 0; | |
$login_count = intval($login_count) + 1; | |
update_user_meta($userdata->ID, 'wd_login_count', $login_count); | |
} |
OlderNewer