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
(function( $ ) { | |
/** | |
* jQuery.transtionend | |
* Retrievs the total amount of time, in miliseconds that | |
* an element will be transitioned | |
*/ | |
$.fn.transtionend = function() { |
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 | |
//Plugin Name: Pretty Attachment Links | |
//change attachment link format | |
add_filter('attachment_link', 'pal_change_link', 10, 2 ); | |
function pal_change_link( $link, $id ) { | |
return home_url("/media/$id/"); | |
} | |
// Adding a new rule |
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 | |
/* | |
* @param int $id Image attachment ID | |
* @param string $size_name Name of custom image size as added with add_image_size() | |
* return bool True if intermediate image exists or was created. False if failed to create. | |
*/ | |
function maybe_create_missing_intermediate_images( $id, $size_name ) { |
NewerOlder