Blog

Disable Update for Wordpress Plugin


add_filter('site_transient_update_plugins', 'ap_remove_update_nag');
function ap_remove_update_nag($value) {
 unset($value->response[ plugin_basename(__FILE__) ]);
 return $value; 
}
Tags

Clear OS-X font cache

I did it again. Messed up something after installing font. So after removing duplicate fonts I need to clear the font cache. Its simple:

  • Close all running applications.
  • Type: sudo atsutil databases -remove into Terminal as Admin
  • Restart immediatly

This removes all font cache files. (system and all user font cache files)

Tags

How to remove the depreceated target="_blank" in Wordpress TinyMCE?

/** Creating custom :external selector **/
$.expr[':'].external = function(obj){
 return !obj.href.match(/^mailto\:/) && (obj.hostname != location.hostname); };
// Add 'external' CSS class to all external links.
$('a:external').bind('click', function(){
 open(this.href);  return false;
});

Tags

WORDPRESS: Add CSS to Tinymce Editor

if ( ! function_exists('tdav_css') ) {
 function tdav_css($wp) {
   $wp .= ',' . get_bloginfo('stylesheet_directory') . '/css/tinymce.css'; return $wp;
 }
}
add_filter( 'mce_css', 'tdav_css' );
Tags

Worpress Plug-in: Multilingual Contact Form

With Wordpress and the qtranslate plug-in it is easy to create multilingual websites for small business. My favorite contact form plug-in was discontinued I needed some replacement, which is usable on a multilingual site.