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 |
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
<!—end #inner --> | |
<div id="footer-widgets" class="footer-widgets"> | |
<div class="wrap"> | |
<div class="footer-widgets-1 widget-area"> | |
<div class="footer-widgets-2 widget-area"> | |
<div class="footer-widgets-3 widget-area"> | |
</div> | |
<!—end .wrap --> |