Latest Pastes

Add Custom Image Sizes to Media Uploader

provide a simple way for the end user to select the image size when inserting an image into the editor via the media upload window

Set default Content

Use this code to set the default content for new posts.

Example to shortcods

remove_shortcode('plugin_shortcode'); add_shortcode('plugin_shortcode','myfunc'); function myfunc($atts){ $plugin_return=plugin_func($atts); return str_replace('str1','str2',$plugin_return); } remove_shortcode('plugin_shortcode'); add_shortcode('plugin_shortcode','myfunc'); function myfunc($atts){ $plugin_return=plugin_func($atts); return str_replace('str1','str2',$plugin_return); }

Improve performance of ajax

Improve performance of ajax instead of loading all of WordPress needed files load just the ones you need