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
do_action( 'edd_post_update_discount', $discount_details, $id ); |
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 excerpt support to downloads post type | |
add_action( 'init', 'bla_excerpt_support' ); | |
function bla_excerpt_support() { | |
add_post_type_support( 'download', 'excerpt' ); | |
} |
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
[counter date=YYY/MM/DD-hh:mm:ss] | |
Just [remaining-timer] until this film comes out in cinemas! | |
[after]For [elapsed-timer], this film is released in cinemas![/counter] |
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
<!-- copy the following line for the first one --> | |
<img src="/wp-content/themes/jackblack/images/whatsinit.png" /> | |
<!-- and copy the next line for the second one --> | |
<img src="/wp-content/themes/jackblack/images/howandwhen.png" /> |
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_image_size( 'example', 500, 100, false ); | |
// Add Logo Size to Media Upload Dialog | |
add_filter( 'image_size_names_choose', 'namespace_image_size_names_choose' ); | |
function namespace_image_size_names_choose( $image_sizes ) { | |
$image_sizes['example'] = __( 'What You Want The Image Size To Be Called In The Media Uploader', 'namespace' ); | |
return $image_sizes; | |
} |
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 | |
/** | |
* Allow Custom Post Templates for Downloads (in Easy Digital Downloads) | |
**/ | |
function my_cpt_post_types( $post_types ) { | |
$post_types[] = 'download'; | |
return $post_types; | |
} | |
add_filter( 'cpt_post_types', 'my_cpt_post_types' ); |
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 | |
/* | |
Template Name Posts: Name Of Your Template | |
*/ | |
?> |
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 TypeKit <head> Code | |
function childtheme_typekit() { ?> | |
<script type="text/javascript" src="//use.typekit.net/t12xau3f.js"></script> | |
<script type="text/javascript">try{Typekit.load();}catch(e){}</script> | |
<?php } | |
add_action( 'wp_head', 'childtheme_typekit' ); |
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 href="#" class="btn small red">I'm a Sexy Button</a> |
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 href="#" class="btn red">That Other Button Has Nothing On Me</a> |