WordPress Quick Tip - how to change default thumbnail size on theme activation
Write this in your theme functions.php
[php]if ( is_admin() && isset($_GET['activated'] ) && $pagenow == 'themes.php' ){
global $wpdb;

$wpdb->query("UPDATE $wpdb->options
SET option_value='145'
WHERE option_name='thumbnail_size_w'");

$wpdb->query("UPDATE $wpdb->options
SET option_value='145'
WHERE option_name='thumbnail_size_h'");


Leave a comment

Your email address will not be published

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

16 − 8 =