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 | |
/** | |
* Filter callback to add image sizes to Media Uploader | |
* | |
* WP 3.3 pre-beta adds a new filter 'image_size_names_choose' to | |
* the list of image sizes which are displayed in the Media Uploader after an image | |
* has been uploaded. | |
* | |
* See image_size_input_fields() in wp-admin/includes/media.php | |
* |
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_action( 'all', create_function( '', 'var_dump( current_filter() );' ) ); |
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 | |
/** | |
* Remove standard image sizes so that these sizes are not | |
* created during the Media Upload process. | |
* Note: these sizes will appear "disabled" in the Media Uploader | |
* | |
* Hooked to intermediate_image_sizes_advanced filter | |
* See wp_generate_attachment_metadata( $attachment_id, $file ) in wp-admin/includes/image.php | |
* | |
* @param $sizes, array of default and added 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 | |
add_filter( 'genesis_post_title_text', 'child_modify_title' ); | |
/** | |
* Add price to post title when category is 'current stock' | |
* | |
* This will only show the price on "main loop" | |
* | |
* @param string $title, post title text, as per genesis_do_post_title() | |
* @return string $title, modified title | |
*/ |
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( 'genesis_footer_backtotop_text', 'footer_backtotop_filter' ); | |
/** | |
* Modify Genesis back to to text | |
* | |
* @author Ade Walker http://www.studiograsshopper.ch | |
* | |
* @param string $backtotop, default text output by Genesis | |
* @return string $backtotop, modified text | |
*/ |
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
<script type='text/javascript'> | |
/* <![CDATA[ */ | |
var carousel_params_1 = {"es_imageW":"150","es_margin":"4"}; | |
/* ]]> */ | |
</script> | |
<script type='text/javascript'> | |
/* <![CDATA[ */ | |
var carousel_params_2 = {"es_imageW":"200","es_margin":"5"}; | |
/* ]]> */ | |
</script> |
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_action('bb_init', 'profile_redirect'); | |
// @link http://bbpress.org/forums/topic/one-profile-page-to-rule-them-all | |
function profile_redirect() { | |
if (is_bb_profile() && $_GET['tab'] != 'edit' && $_GET['tab'] != 'favorites') { | |
$user = bb_get_user($_GET['id']); | |
if ($user) wp_redirect("http://www.example.com/member/" . $user->user_nicename); | |
} | |
} |
OlderNewer