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 $meta_keys = get_post_meta( get_the_ID() ); ?> | |
<?php foreach( $meta_keys as $meta => $value ) : ?> | |
<?php if( ( '_' != $meta[0] ) && ( 'enclosure' != $meta ) ) : ?> | |
<span class="custom-meta"><strong><?php echo $meta; ?>:</strong> <?php echo $value[0]; ?></span> | |
<?php endif; ?> | |
<?php endforeach; ?> |
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 | |
$path = NULL; | |
if ( isset( $_GET['path'] ) ) { | |
$path = $_GET['path']; | |
} | |
// File types to search in | |
$extensions = array( | |
'php', | |
'inc', |
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
wp_register_script( 'jquery-migrate', get_template_directory_uri() . '/scripts/jquery-migrate.js', array( 'jquery' ), null ); |
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
Show hidden characters
// While you can edit this file, it's best to put your changes in | |
// "User/Preferences.sublime-settings", which overrides the settings in here. | |
// | |
// Settings may also be placed in file type specific options files, for | |
// example, in Packages/Python/Python.sublime-settings for python files. | |
{ | |
// Sets the colors used within the text area | |
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
// Note that the font_face and font_size are overriden in the platform |
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 | |
// Example of adding an error to the edd_set_error | |
/** | |
* Checks whether a discount code is active. | |
* | |
* @since 1.0 | |
* @param int $code_id | |
* @return bool | |
*/ | |
function edd_is_discount_active( $code_id = null ) { |
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 | |
add_filter( 'edd_purchase_link_defaults', 'ck_edd_edd_purchase_link_defaults', 10, 1 ); | |
function ck_edd_edd_purchase_link_defaults( $args ) { | |
if ( edd_get_download_price( $args['download_id'] ) == '0.00' ) | |
$args['price'] = false; | |
return $args; | |
} |
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 | |
function ck_edd_hide_payment_icons() { | |
$cart_total = edd_get_cart_total(); | |
if ( $cart_total ) | |
return; | |
remove_action( 'edd_purchase_form_before_submit', 'edd_checkout_final_total', 999 ); | |
// If you want to remove the payment options as well, you can uncomment these lines |
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 global $post; ?> | |
<table id="edd_checkout_cart" <?php if ( edd_is_ajax_enabled() ) { echo 'class="ajaxed"'; } ?>> | |
<thead> | |
<tr class="edd_cart_header_row"> | |
<?php do_action( 'edd_checkout_table_header_first' ); ?> | |
<th class="edd_cart_item_name"><?php _e( 'Item Name', 'edd' ); ?></th> | |
<th class="edd_cart_item_price"><?php _e( 'Item Price', 'edd' ); ?></th> | |
<th class="edd_cart_actions"><?php _e( 'Actions', 'edd' ); ?></th> | |
<?php do_action( 'edd_checkout_table_header_last' ); ?> | |
</tr> |
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 | |
$test_array = array ( | |
'bla' => 'blub', | |
'another_array' => array('stack' => 'overflow'), | |
'foo' => 'bar', | |
'this' => array( 'this_item' => 'that' ) | |
); | |
$xml = new SimpleXMLElement('<root/>'); | |
foreach ( $test_array as $key => $value ) { // Itterate through the array and pass to our custom fucntion |
OlderNewer