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
jQuery(document).ready(function() { | |
function movin_the_bar_like_a_boss() { | |
jQuery('div.gf_progressbar_wrapper').each(function(i,e){ | |
fielddesc = jQuery('<div>').append(jQuery(e).clone()).remove().html(); | |
jQuery(e).siblings('div.gform_body').after(fielddesc); | |
jQuery(e).remove(); | |
}); | |
} |
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( 'gform_required_legend', '__return_empty_string' ); |
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 | |
// Change 36 to your parent form ID | |
add_action( 'gform_after_submission_36', function( $entry, $form ){ | |
global $vxg_salesforce; | |
$parent_entry = new GPNF_Entry( $entry ); | |
$child_entries = $parent_entry->get_child_entries( 25 ); // Change 25 to the Nested Form field ID in the parent (FIELD ID, NOT FORM 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( 'gform_entry_is_spam', 'filter_gform_entry_is_spam_urls_and_emails', 11, 3 ); | |
function filter_gform_entry_is_spam_urls_and_emails( $is_spam, $form, $entry ) { | |
if ( $is_spam ) { | |
return $is_spam; | |
} | |
$field_types_to_check = array( | |
'hidden', |
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( 'current_screen', function() { | |
$screen = get_current_screen(); | |
if ( $screen->id !== "dashboard" ) { | |
add_action( 'admin_enqueue_scripts', function() { | |
echo '<style> |
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
/** Add frequently used links to main menu of Admin Bar */ | |
if ( ! function_exists( 'x_add_options_item_to_admin_bar' ) ) { | |
function x_add_options_item_to_admin_bar() { | |
global $wp_admin_bar; | |
$wp_admin_bar->add_menu( | |
array( | |
'parent' => 'site-name', | |
'id' => 'x_library', | |
'title' => __( 'Media Library', 'x' ), |
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
<p class="listing-details listing-content">[wpbb post:content]</p> | |
<div class="listing-details listing-community relationship-field-list"><span class="detail-label">Community:</span> [wpbb post:acf_relational type='post_object' name='community_relationship']</div> | |
<p class="listing-details listing-status">[wpbb post:terms_list taxonomy='status_tax' html_list='no' separator=', ' linked='no']</p> | |
<p class="listing-details listing-address">[wpbb post:acf type='text' name='property_location_address']<br /> | |
[wpbb post:acf type='text' name='property_location_city'], | |
[wpbb post:acf type='text' name='property_location_state'] | |
[wpbb post:acf type='text' name='property_location_zip']</p> | |
<p class="listing-details listing-price">[wpbb post:acf type='text' name='property_location_price']</p> | |
<p class="listing-details listing-size"><span class="detail-label">Square Feet:</span> [wpbb post:acf type='text' name='property_details_square_feet']</p> | |
<p class="listing-details listing-bedrooms"><span class="detail-label">Bedroo |
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
{ | |
"config": { | |
"exclude": [ | |
".git/**", | |
"node_modules/**" | |
], | |
"verbose": true, | |
"always-semicolon": true, | |
"block-indent": "\t", |
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
add_filter( 'gfpc_query_args_gfpc-widget-13', 'gd_filter_home_blog_posts', 20, 2 ); | |
function gd_filter_home_blog_posts( $args, $instance ) { | |
$args['post_type'] = array( 'page', 'product'); | |
return $args; | |
} |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
NewerOlder