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 | |
/** | |
* Read first, otherwise the following will make no sense at all: | |
* http://kau-boys.de/1747 | |
* | |
* | |
* WordPress’s built-in conditional comment syntax allows | |
* for conditional comments like this: | |
* | |
* <!--[if gt IE 8]> |
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
<form class="ordering" method="get"> | |
<select name="name"> | |
<option value="value">Option</option> | |
<option value="value">Option</option> | |
<option value="value">Option</option> | |
</select> | |
</form> |
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 | |
/** | |
* Translate text strings in WordPress programmatically. | |
* | |
* Assuming plugin intorduces "Foo_Plugin" class, has text domain "foo-plugin". | |
* | |
* @param mixed $translated | |
* @param mixed $original | |
* @param mixed $domain | |
* @return 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 | |
/** | |
* Snippet for deleting the customer IP address from WooCommerce orders. | |
* Important for Trusted Shops® certificates in Germany. | |
*/ | |
add_action( 'woocommerce_checkout_update_order_meta', 'mp1401091554', 1 ); | |
function mp1401091554( $order_id ) { | |
update_post_meta( | |
$order_id, | |
'_customer_ip_address', |
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 | |
/** | |
* Exclude categories from prev/next post links. | |
* | |
* $exclude (array) - category slugs to retrieve IDs from | |
* $excluded (array) - category IDs to be excluded | |
*/ | |
$exclude = array(); | |
$excluded = array(); |
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 | |
/** | |
* child-theme/functions.php | |
* | |
* Loads first, before parent-theme/functions.php. | |
*/ | |
function child_after_setup_theme() { | |
load_child_theme_textdomain( 'child-textdomain', get_stylesheet_directory() . '/languages' ); |
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 | |
/* | |
* Regular content of content-product.php | |
* ... | |
* ... | |
*/ | |
/** | |
* Display product variation attributes on product category pages. | |
* |
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
// A tidy house, a tidy mind. | |
@import "compass"; | |
@import "numbers"; | |
@import "vertical-rhythm"; | |
@import "math"; |