How to change default image rename?

I think you can only access $file and do something like below. add_filter(‘wp_handle_upload_prefilter’, ‘custom_upload_filter’ ); function custom_upload_filter( $file ){ $file[‘name’] = ‘wordpress-is-awesome-‘ . $file[‘name’]; return $file; } Also have a look how WP does it at wp-includes/file.php

Set menu item class into body

You’re going about this backwards. What you want to do is use jQuery to test for the presence of the current menu class, then see if that item has the assigned class. If it does, then you add your CSS to the body. <script type=”text/javascript”> jQuery(document).ready(function($) { if($(‘li.current-menu-item’).hasClass(‘your_custom_class’)) { $(‘body’).css(‘background-color’, ‘orange’); } }); </script> Integrating … Read more

How do I get WooCommerce to recreate the home page?

WooCommerce does not create a ‘home page’. The pages which do get auto-created (as part of version 2.0.14 which is stable at the time of writing) are: Shop (this is a placeholder for the main post type archive) My Account Checkout Cart lost password logout edit address view-order change password Pay Order received To have … Read more

Exclude parts of default css import

Make a copy of Twenty Thirteen’s default stylesheet and remove all unnecessary styles. After it import this copy instead of Twenty Thirteen’s and after next update you won’t loose your changes.