Our Best Sellers

I’m back!

Life is not always perfect and I needed to leave this site into forgottenness for quite some time. Next I’ll release the Prestashop modules free of charge – a link to GitHub will follow. For the rest of products & … Continue reading

Select Biggest MySQL tables

SELECT CONCAT(table_schema, ‘.’, table_name), CONCAT(ROUND(table_rows / 1000000, 2), ‘M’) rows, CONCAT(ROUND(data_length / ( 1024 * 1024 * 1024 ), 2), ‘G’) DATA FROM information_schema.TABLES ORDER BY `DATA` DESC LIMIT 100

Change slug for an already registered post type

function wpti_custom_post_type_args( $args, $post_type ) { if ( $post_type === ‘my-registered-custom-post-type’ ) { $args[‘rewrite’] = array( ‘slug’ => ‘my-new-slug’ ); } return $args; } Unfortuantely it doesn’t work with the default post types like post/page