Add SVG upload support to your WordPress blog »

Simply add the code below to functions.php in your WordPress theme. SVG upload will be supported once the file is saved. add_filter('upload_mimes', 'my_upload_mimes'); function my_upload_mimes($mimes = array()) { $mimes['svg'] = 'image/svg+xml'; return $mimes; }

Automatically junk comments with a very long URL »

This code will automatically mark as spam all comments with an url longer than 50 chars. This can be changed on line 4.

How to Change the WordPress Admin Easily »

CHANGING THE DEFAULT EXTERNAL LINK OF THE WORDPRESS LOGIN PAGE When you log into WordPress, the default logo links to WordPress.org. Let me show you a quick tip for using your own link. Open the functions.php file. Then, add the following lines of code. And be sure to remember the PHP tag enclosure. // Use ...

Make a directory within the uploads folder »

Simply paste this code snippet on your functions.php file (or plugin file if you’re creating a plugin) function myplugin_activate() { $upload = wp_upload_dir(); $upload_dir = $upload['basedir']; $upload_dir = $upload_dir . '/mypluginfiles'; if (! is_dir($upload_dir)) { mkdir( $upload_dir, 0700 ); } } register_activation_hook( __FILE__, 'myplugin_activate' );

Mobile focus for Drupal 8 »

The history of content management systems on mobile devices is patchy at best, with no real success story to match that of WordPress on desktops. Drupal 8 will focus on this area in an effort to take the lead in this essential and growing field. Release date A tentative release date of September 13th 2013 ...