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 all of this tu custom page template ?> | |
<?php | |
global $wpdb; | |
$error = ''; | |
$success = ''; | |
// check if we're in reset form | |
if( isset( $_POST['action'] ) && 'reset' == $_POST['action'] ) | |
{ |
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_checkout_fields' , 'custom_override_checkout_fields' ); | |
function custom_override_checkout_fields( $fields ) { | |
unset($fields['billing']['billing_first_name']); | |
unset($fields['billing']['billing_last_name']); | |
unset($fields['billing']['billing_company']); | |
unset($fields['billing']['billing_address_1']); | |
unset($fields['billing']['billing_address_2']); |
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 | |
defined( 'ABSPATH' ) or die(); | |
// make all super admins automatically local admins of all child sites | |
function put_supers_as_admins() { | |
global $wp_roles, $user, $current_user; | |
$man_user_id = $current_user->ID; | |
$man_sites = get_sites(); |
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('.the-filter-form-class').ajaxComplete(function() { | |
$('.selectpicker').selectpicker(); // re-init the thing on ajax done (sort of like a page load) | |
} | |
// 'prece | |
// http://silviomoreto.github.io/bootstrap-select |
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 wpdocs_theme_name_scripts() { | |
wp_enqueue_style( 'style-name', get_stylesheet_directory_uri().'style.css?ver='rand(1,9999) ); | |
} | |
add_action( 'wp_enqueue_scripts', 'wpdocs_theme_name_scripts' ); |
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
/* download Stylish for Firefox https://addons.mozilla.org/en-Us/firefox/addon/stylish/ | |
Make a new style for google.com and copy and paste the below | |
*/ | |
@namespace url(http://www.w3.org/1999/xhtml); | |
@-moz-document domain("www.google.com") { | |
#lga{ |
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
```javascript | |
<script> | |
$(document).ready(function () { | |
$('#input-menu').inputMenu(); | |
}); | |
</script> | |
``` |
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
# add your Window's username in place of {yourName} | |
<VirtualHost *:80> | |
ServerAdmin webmaster@dummy.example.com | |
DocumentRoot "C:/Users/{yourName}/Google Drive/wamp/www" | |
ServerName localhost | |
ServerAlias localhost | |
ErrorLog "logs/localhost.log" | |
CustomLog "logs/localhost.log" common | |
</VirtualHost> |
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
<link href="../core-field/core-field.html" rel="import"> | |
<link href="../core-icon/core-icon.html" rel="import"> | |
<link href="../core-input/core-input.html" rel="import"> | |
<link href="../core-icons/core-icons.html" rel="import"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
#design_host { |