This file contains hidden or 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 | |
// Update order status based on the id of payment gateway | |
function credit_card_complete_order_status( $order_id ) { | |
$order = new WC_Order( $order_id ); | |
if ( $order->payment_method == 'authorize_net' ) { | |
$order->update_status('completed', 'Automatically Completed'); | |
} | |
} |
This file contains hidden or 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 | |
function get_current_post_taxonomies(){ | |
global $post; | |
$taxonomy_names = get_object_taxonomies( $post ); | |
?> | |
<!--<tt><pre><?php print_r( $taxonomy_names); ?></tt></pre>--> | |
<?php | |
} |
This file contains hidden or 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(function($) { | |
$('.hover-image').bind('mouseover', function() { | |
$('.testimonial').html($(this).data('testimonial')); | |
}); | |
}); |
This file contains hidden or 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 | |
function add_taxonomy_term_as_body_classes( $classes ) { | |
global $post; | |
$terms = wp_get_post_terms($post->ID, '[taxonomy]', array("fields" => "all")); | |
foreach ($terms as $class ) { | |
$classes[] = $class->slug; | |
} | |
return $classes; | |
} |
This file contains hidden or 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
.container { | |
&:before { | |
content: ''; | |
display: inline-block; | |
height: 100%; | |
vertical-align: middle; | |
} | |
.centered { | |
vertical-align: middle; | |
} |
This file contains hidden or 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 | |
// Trim a string by words instead of characters | |
$pos=strpos($content, ' ', 200); | |
substr($content,0,$pos ); |
This file contains hidden or 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
/* Column Classes | |
Link: http://twitter.github.io/bootstrap/assets/css/bootstrap-responsive.css | |
--------------------------------------------- */ | |
.five-sixths, | |
.four-sixths, | |
.one-fourth, | |
.one-half, | |
.one-sixth, | |
.one-third, |
This file contains hidden or 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
.entry table{border-collapse:collapse;margin:40px 0;font-family:'Linden Hill';font-size:18px;} | |
.entry th{font-size: 24px; font-weight: normal;padding-bottom: 10px;text-align:left;padding-left:20px;} | |
.entry td{padding:10px 30px;} | |
.entry td:last-child{border-right:none;} | |
.entry tbody { | |
border-top: 1px solid #DFDFDF; | |
border-bottom: 1px solid #DFDFDF; | |
} | |
.entry tbody tr:nth-child(odd) .row-one{background-color:#AEBBCE; color:#fff;} | |
.entry tbody tr:nth-child(odd) .row-two{background-color:#fff;color:#381d7a;} |
This file contains hidden or 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
.entry ul { | |
list-style-type: square; | |
} | |
.entry li { | |
padding:6px 0; | |
color: #01518f; | |
} | |
.entry ol { | |
counter-reset:li; | |
margin-left:0; |
This file contains hidden or 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
// Custom ACF options pages | |
function my_acf_options_page_settings( $settings ) | |
{ | |
$settings['title'] = 'Site Options'; | |
$settings['pages'] = array('Home', 'Highlighted'); | |
return $settings; | |
} | |
add_filter('acf/options_page/settings', 'my_acf_options_page_settings'); |
OlderNewer