Tips and tricks

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'");

}[/php]

Leave a comment

Your email address will not be published

{"type":"main_options","images_arr":"'#ffffff'","bg_slideshow_time":"0","site_url":"https:\/\/digitalzoomstudio.net","theme_url":"https:\/\/digitalzoomstudio.net\/wp-content\/themes\/qucreative\/","is_customize_preview":"off","gallery_w_thumbs_autoplay_videos":"off","base_url":"https:\/\/digitalzoomstudio.net"}