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 | |
| if (isDEVAvailible('http://premium.wpmudev.org')) | |
| { | |
| echo "<h1>premium.wpmudev.org is Up and running!</h1>"; | |
| } | |
| else | |
| { | |
| echo "<h1>Woops, nothing found at premium.wpmudev.org.</h1>"; | |
| } |
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 | |
| add_filter( 'woocommerce_default_address_fields' , 'custom_override_default_address_fields' ); | |
| function custom_override_default_address_fields( $address_fields ) { | |
| $address_fields['address_1']['required'] = false; | |
| $address_fields['address_2']['required'] = false; | |
| $address_fields['postcode']['required'] = false; | |
| $address_fields['state']['required'] = false; | |
| $address_fields['city']['required'] = false; | |
| $address_fields['country']['required'] = false; |
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 | |
| add_action( 'woocommerce_thankyou', 'bbloomer_redirectcustom'); | |
| function bbloomer_redirectcustom( $order_id ){ | |
| $order = new WC_Order( $order_id ); | |
| $url = 'http://yoursite.com/custom-url'; | |
| if ( $order->status != 'failed' ) { | |
| wp_redirect($url); |
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 | |
| add_action( 'woocommerce_after_shop_loop_item', 'wc_product_sold_count', 11 ); | |
| function wc_product_sold_count() { | |
| global $product; | |
| $units_sold = get_post_meta( $product->id, 'total_sales', true ); | |
| echo '<p>' . sprintf( __( 'Units Sold: %s', 'woocommerce' ), $units_sold ) . '</p>'; | |
| } |
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
| #prosites-checkout-table .period-selector-container { | |
| width: 100% !important; | |
| text-align: center; | |
| } | |
| .period-selector-container label > input + .period-option { | |
| padding: 9px; | |
| height: 3em; | |
| font-size: 14px | |
| } | |
| #prosites-checkout-table .pricing-column .title { |
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 defaultPrositePeriod() { | |
| ?> | |
| <script type="text/javascript"> | |
| jQuery( document ).ready( function( $ ) { | |
| $('#prosites-checkout-table .period-selector-container input[checked="checked"]').prop('checked', false); | |
| $('#prosites-checkout-table .period-selector-container input[value="price_12"]').prop('checked', true); | |
| $('#prosites-checkout-table .summary .price_3').css('display', 'none'); | |
| $('#prosites-checkout-table .summary .price_1').css('display', 'none'); | |
| $('#prosites-checkout-table .summary .price_12').css('display', 'block') |
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 intranet_loggedout_redirect() | |
| { | |
| if( is_page( 'intranet' ) && ! is_user_logged_in() ) | |
| { | |
| wp_redirect( home_url( '/community/' ) ); | |
| die; | |
| } | |
| } | |
| add_action( 'template_redirect', 'intranet_loggedout_redirect' ); |
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 | |
| add_action('wp_head', 'woo3cols'); | |
| function woo3cols() { | |
| echo '<style>.woocommerce ul.products li.product {clear: none !important;width: 32% !important;float: none !important;display: inline-block;vertical-align: top;}</style>'; | |
| } |
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 dermoesteticamiori_gmaps() { | |
| wp_enqueue_script( 'googlemaps_js', 'http://www.dermoesteticamiori.it/vip/wp-content/uploads/google-map.js'); | |
| } | |
| add_action( 'wp_enqueue_scripts', 'dermoesteticamiori_gmaps' ); |
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
| (function($) { | |
| $(document).ready(function(){ | |
| var marker; | |
| var image = 'images/map-marker.png'; | |
| function initMap() { | |
| var myLatLng = {lat: 39.79, lng: -86.14}; | |
| // Specify features and elements to define styles. | |
| var styleArray = [ | |
| {"featureType":"all","elementType":"labels.text.fill","stylers":[{"saturation":36},{"color":"#000000"},{"lightness":40}]},{"featureType":"all","elementType":"labels.text.stroke","stylers":[{"visibility":"on"},{"color":"#000000"},{"lightness":16}]},{"featureType":"all","elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"administrative","elementType":"geometry.fill","stylers":[{"color":"#000000"},{"lightness":20}]},{"featureType":"administrative","elementType":"geometry.stroke","stylers":[{"color":"#000000"},{"lightness":17},{"weight":1.2}]},{"featureType":"landscape","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":20}]},{"featureType":"poi","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":21}]}, |
OlderNewer