Disable woocommerce product gallery metabox

It is very simply remove this metabox with follow code:

add_action( 'add_meta_boxes' , 'remove_my_meta_boxes', 40 );
function remove_my_meta_boxes()
    remove_meta_box( 'woocommerce-product-images',  'product', 'side');

Useful plugin for fix your javascript files with errors

If you have many files that wrote not you, for example in theme for your favourite CMS, and those files have many error like – missing semicolon or other same errors. You can use this plugin library for fix it – fixmyjs.

How to decode address to coordinates with Google maps api


For do this simple operation you need implement next function:

function  address_func(addresses, callback) {
        var coords = [];
        for(var i = 0; i < addresses.length; i++) {
            currAddress = addresses[i];
            var geocoder = new google.maps.Geocoder();
            if (geocoder) {
                geocoder.geocode({'address':currAddress}, function (results, status) {
                    if (status == google.maps.GeocoderStatus.OK) {
                        if(coords.length == addresses.length) {
                            if( typeof callback == 'function' ) {
                    else {
                        throw('No results found: ' + status);

And use this function as:

var address_array = ["514 Broadway, Brooklyn, New York, NY, United States"]
address_func([select_val], function(results){
for(marker in results)
   var marker_lat_lng = new google.maps.LatLng(results[marker].lat(), results[marker].lng());
   var marker = new google.maps.Marker({
					 position: marker_lat_lng,
					 map: map,

How add tail slash redirect with .htaccees

If you need to do redirect from urls without tail slash to urls with slash, you can simply add this lines in your .htaccess:

RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*[^/])$ http://www.site.ru/$1/ [L,R=301]

How to change recipient email on send event in Contact Form 7 (WordPress)

Hello everyone!

Sometimes you may need to send letter from your form on the your website to another recipient, for example user changed some parameters.

You can change recipient email with this hook:

function wpcf7_param_change_on_send($contact_form) {

    $custom_email = $_POST['some_field'];
      $mail = $contact_form->prop( 'mail' );
      $mail['recipient'] = $custom_email;

add_action("wpcf7_before_send_mail", "wpcf7_param_change_on_send");

How match all h1-h6 tags in PHP

For match all H tags in html code you need do this:


Where $content is a string variable with html tags and $all_h_tags is a variable where puts all matches.


It is my first blog entry.

In this blog I would write about web technologies and how their use in modern web development.