CuTt7: theme-symlink

Copper’s Tips & Tricks #7: theme-symlink WordPress developers, I know some of you who use Sublime or similar tools with file explorer sidebars, have problems. Innumerable, as we’re all humans, and perfection is unattainable. I know some of you open the whole project folder from the webroot, or even higher up. For you, I have […]

WooCommerce Custom Password Strength

Haven’t you been wanting to do this? To choose your own password strength for WC? Haven’t you? Well, here’s a quick way to copy paste this into your `functions.php` file or a more “correct” configuration file/model inside infinitely recursing folders for proper organization of your code. // Customize required password strength START // Main function […]

Optimización WooCommerce agregando multiple column indexes

Muchas queries que hacemos con mysql en proyectos WooCommerce usan la misma combinación de columnas en sus condiciones de búsqueda. Por lo que crear índices de columnas múltiples puede acelerar el proceso del a query considerablemente.   Algunas de las tablas son: table = wp_postmeta index = (post_id, meta_key) table = wp_woocommerce_order_items index = (order_id, […]

How to Add an Admin User to the WordPress Database via MySQL

Update the bold sections with your stuff   INSERT INTO `wp_users` (`user_login`, `user_pass`, `user_nicename`, `user_email`, `user_status`) VALUES (‘newadmin’, MD5(‘pass123’), ‘firstname lastname’, ’[email protected]’, ‘0’); INSERT INTO `wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, (Select max(id) FROM wp_users), ‘wp_capabilities’, ‘a:1:{s:13:”administrator”;s:1:”1″;}’); INSERT INTO `wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, (Select max(id) FROM wp_users), ‘wp_user_level’, ’10’);

WordPress admin is running so slow! Usually are network issues

After upgrading wordpress to 4.1 and installing a few plugins, my Admin area became un usably slow. WordPress checks for updates on every request! BAD IDEA So I edited the code under the function wp_update_plugins() near the call to “wp_remote_post()” to look like this: if ( defined( ‘DOING_CRON’ ) && DOING_CRON ) { $timeout = 30; } […]

Migrar sitio de URL en wordpress

UPDATE wp_options SET option_value = REPLACE ( option_value, ‘olddomain’, ‘newdomain’) WHERE option_value LIKE ‘%olddomain%’; UPDATE wp_posts SET post_content = REPLACE ( post_content, ‘olddomain’, ‘newdomain’) WHERE post_content LIKE ‘%olddomain%’; UPDATE wp_posts SET guid = REPLACE ( guid, ‘olddomain’, ‘newdomain’) WHERE guid LIKE ‘%olddomain%’; UPDATE wp_postmeta SET meta_value = REPLACE ( meta_value,  ‘olddomain’, ‘newdomain’) WHERE meta_value LIKE […]