Creating table with plugin is not working

Your dot and quote notation is funky. Try this: if($wpdb->get_var(“SHOW TABLES LIKE ‘$table_name'” ) != $table_name){ $sql= “CREATE TABLE $table_name ( id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY, firstname VARCHAR(30) NOT NULL, lastname VARCHAR(30) NOT NULL, email VARCHAR(50), reg_date TIMESTAMP );”; require_once (ABSPATH. ‘wp-admin/includes/upgrade.php’ ); dbDelta($sql); }

Add version query tag to all images

Don’t know why you want to do it when there’s update_post_thumbnail_cache() in WordPress and set expire headers on server side. But you can try this in your functions.php: add_filter(‘wp_get_attachment_image_src’, function($img, $id, $size, $icon) { $img[0] = $img[0] . ‘?v={$some_version}’; return $img; }, PHP_INT_MAX, 4);

Decrease RSS cache time in plugin?

Why not just use native RSS widget? Also while Chris_O is absolutely right on filter to use, it is better practice to change cache time for specific feed URL rather than globally: add_filter( ‘wp_feed_cache_transient_lifetime’, ‘speed_up_feed’, 10, 2 ); function speed_up_feed( $interval, $url ) { if( ‘http://mysite.org/feed’ == $url ) return 3600; return $interval; }

Show dialog box in TinyMCE plugin and use WordPress php functions in it

Instead of requireing admin.php you just can use WP built-in ajax functionality, even if it’s not ajax in this case. Add a hook add_action(‘wp_ajax_my_plugin_function’, ‘my_plugin_function_callback’); Create your output function (callback) function my_plugin_function_callback() { // do stuff } Call it this way instead of: file : url + ‘/box.php’, you should be able to use the … Read more