$args[0], 'height' => $args[1] ); } return $url.'?'.http_build_query( $args ); } /** * Creates Preview img html * * @param WP_Post $post * @param array $args Array with the desired image dimensions array( width, height ) * * @return string html * * @since 1.0.0 */ function sfw_create_preview_img( $post, $args = array( 100, 100 ) ) { return ''; } /** * Echoes a preview image * * @param WP_Post $post * @param array $args Array with the desired image dimensions array( width, height ) * * @return string html * * @since 1.0.0 */ function sfw_preview_img( $post, $args = array( 100, 100 ) ) { echo sfw_create_preview_img( $post, $args ); }